projects
/
chef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve cacheability of static resources
[chef.git]
/
cookbooks
/
web
/
templates
/
default
/
apache.frontend.erb
diff --git
a/cookbooks/web/templates/default/apache.frontend.erb
b/cookbooks/web/templates/default/apache.frontend.erb
index 5944e5f18e5f146f3386ba5f8a9a205a3f559588..1f53272b2dfc33301392718ef886afaaf497acc5 100644
(file)
--- a/
cookbooks/web/templates/default/apache.frontend.erb
+++ b/
cookbooks/web/templates/default/apache.frontend.erb
@@
-95,10
+95,11
@@
# Set expiry for assets
#
<Location /assets/>
- Header unset
ETag
- FileETag
Non
e
+ Header unset
Last-Modified
+ FileETag
Siz
e
ExpiresDefault "access plus 1 year"
+ Header set Cache-Control "immutable, max-age=31536000"
</Location>
#