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 b891dff..5ca2ce7 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>
+