From eec317f51f47f4df563d982c57df34f3a78690b2 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 6 Aug 2018 11:11:25 +0100 Subject: [PATCH] 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. --- cookbooks/web/templates/default/apache.frontend.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.5