[web-doc] master: Remove cache for generated images (#16)
[email protected] (Davide Pastore via GitHub) Thu, 8 Jul 2021 15:12:52 +0000
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
Author: Davide Pastore (DavidePastore)
Committer: GitHub (web-flow)
Pusher: salathe
Date: 2021-07-08T16:13:12+01:00
Commit: https://github.com/php/web-doc/commit/d5bd3349461e85bc161272d1d6b68d17a1f9cf65
Raw diff: https://github.com/php/web-doc/commit/d5bd3349461e85bc161272d1d6b68d17a1f9cf65.diff
Remove cache for generated images (#16)
Changed paths:
M www/.htaccess
Diff:
diff --git a/www/.htaccess b/www/.htaccess
index f7e7d16..5981895 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -9,3 +9,9 @@ RewriteRule ^tutorial/([a-z\-]*).php$ /tutorial.php?chapter=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /redirect.php
+
+<IfModule mod_headers.c>
+ <FilesMatch "\.(jpg|jpeg|png|gif)$">
+ Header set Cache-Control no-cache
+ </FilesMatch>
+</IfModule>
\ No newline at end of file