commit eabef4b77d561857d48796e7c1fd3aa4e3495bb0 parent 0eb7798332b60499dc063e00b45583846d372c52 Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de> Date: Sat, 27 Jun 2020 23:29:03 +0200 Make image caching work Diffstat:
M | .htaccess | | | 12 | +++++++++--- |
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/.htaccess b/.htaccess @@ -19,6 +19,12 @@ AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Cache one month for image files -<filesMatch ".(jpg|jpeg|png|gif|ico)$"> -Header set Cache-Control "max-age=2628000, public" -</filesMatch> +<IfModule mod_expires.c> + ExpiresActive On + ExpiresDefault "access plus 300 seconds" + ExpiresByType image/gif "access plus 1 month 1 hour" + ExpiresByType image/jpg "access plus 1 month 1 hour" + ExpiresByType image/jpeg "access plus 1 month 1 hour" + ExpiresByType image/png "access plus 1 month 1 hour" + ExpiresByType image/svg "access plus 1 month 1 hour" +</IfModule>