From 3a8b64a5aba9674f2c8d25c8974e28117dd66f6e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 14 Nov 2016 07:58:46 +0200 Subject: [PATCH] roles/nginx: Remove 'public' from Cache-Control header If a max-age is specified the 'public' is implicit. See: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching --- roles/nginx/templates/wordpress.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/templates/wordpress.j2 b/roles/nginx/templates/wordpress.j2 index b280385..dd65a39 100644 --- a/roles/nginx/templates/wordpress.j2 +++ b/roles/nginx/templates/wordpress.j2 @@ -7,7 +7,7 @@ } location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ { - add_header Cache-Control "public, max-age=604800"; + add_header Cache-Control "max-age=604800"; } # Add trailing slash to */wp-admin requests.