set immutable for woff2 cache headers

This commit is contained in:
Daniel Micay 2021-03-27 09:05:58 -04:00
parent 54845bd077
commit ba1047b121

View File

@ -239,7 +239,14 @@ http {
add_header Cache-Control "public, max-age=31536000";
}
location ~ "\.(png|woff2)$" {
location ~ "\.woff2$" {
include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=31536000, immutable";
gzip_static off;
brotli_static off;
}
location ~ "\.png$" {
include snippets/security-headers.conf;
add_header Cache-Control "public, max-age=31536000";
gzip_static off;