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
This commit is contained in:
Alan Orth 2016-11-14 07:58:46 +02:00
parent a5f8ab6182
commit 3a8b64a5ab
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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.