diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-03-27 09:05:58 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-03-27 09:05:58 -0400 |
| commit | ba1047b1214ef952a61f606a23bd8f7125ff19f5 (patch) | |
| tree | 59638b370eeaba6fc906373a02f73594dba1a472 | |
| parent | 54845bd0773198946b85e6eaa2749f66239ef2db (diff) | |
set immutable for woff2 cache headers
| -rw-r--r-- | nginx/nginx.conf | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 064ed1fb..91e3faa6 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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; |
