projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be74b07
)
Add public to Cache-Control per rfc7234 5.2.2.5 and immutable
author
Grant Slater
<git@firefishy.com>
Mon, 6 Aug 2018 10:11:25 +0000
(11:11 +0100)
committer
Grant Slater
<git@firefishy.com>
Mon, 6 Aug 2018 10:21:23 +0000
(11:21 +0100)
The immutable flag to ensure browsers do not attempt conditional reload.
Immutable is an 'in-beta' Cache-Control flag supported by Chome, Firefox and Safari.
cookbooks/web/templates/default/apache.frontend.erb
patch
|
blob
|
history
diff --git
a/cookbooks/web/templates/default/apache.frontend.erb
b/cookbooks/web/templates/default/apache.frontend.erb
index 3e7fc56c30cf0a632c17624c3530750ff7d8f51f..449e0a88b3acf7a1c3e69bd81ef40381469cf693 100644
(file)
--- a/
cookbooks/web/templates/default/apache.frontend.erb
+++ b/
cookbooks/web/templates/default/apache.frontend.erb
@@
-62,7
+62,7
@@
# and force cache headers on response
#
<Location /openlayers/img/404.png>
- Header always set Cache-Control "
max-age=31536000
"
+ Header always set Cache-Control "
public, max-age=31536000, immutable
"
Header always set Expires "Tue, 19 Jan 2038 03:14:07 GMT"
RewriteRule ^ - [G,L]
</Location>