htaccess: set max-age for includes to a month
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 5 Jun 2013 22:04:23 +0000 (00:04 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 5 Jun 2013 22:04:23 +0000 (00:04 +0200)
Encourage more caching for static css and javascript.

.htaccess

index b891dff3be529a33a0372011398d1eff2c5e0045..5ca2ce7b636fcf7db1e3e44f3410117885df7fb4 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -25,3 +25,10 @@ RewriteRule    ^/*([^/]+)(.*)           $1.plp$2
 AddOutputFilterByType DEFLATE text/html
 </IfModule>
 
+# allow browsers to cache for upto a month
+<IfModule headers_module>
+<FilesMatch "\.(?:css|js)$">
+Header set Cache-Control "max-age=2592000"
+</FilesMatch>
+</IfModule>
+