[web-doc] master: Remove cache for generated images (#16)

From: Date: Thu, 08 Jul 2021 15:12:52 +0000
Subject: [web-doc] master: Remove cache for generated images (#16)
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2481@lists.php.net to get a copy of this message
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

« previous php.doc.web (#2481) next »