git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b940a96
)
htaccess: set max-age for includes to a month
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 5 Jun 2013 22:04:23 +0000
(
00:04
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 5 Jun 2013 22:04:23 +0000
(
00:04
+0200)
Encourage more caching for static css and javascript.
.htaccess
patch
|
blob
|
history
diff --git
a/.htaccess
b/.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>
+