From: Grant Slater Date: Mon, 6 Aug 2018 10:11:25 +0000 (+0100) Subject: Add public to Cache-Control per rfc7234 5.2.2.5 and immutable X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/eec317f51f47f4df563d982c57df34f3a78690b2?hp=be74b079f8bb9c7b2b7c0279a7d2f3a5621b1cb1 Add public to Cache-Control per rfc7234 5.2.2.5 and immutable 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. --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 3e7fc56c3..449e0a88b 100644 --- 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 # - 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]