diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-03-26 19:32:22 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-03-26 19:32:22 -0400 |
| commit | 6160770d00ccd56e2d2464e47edbca181d647eee (patch) | |
| tree | bb96ddeb0451eee03f5711ff273f4502b6bdd011 | |
| parent | 4b6b1b6181e7a27c42636979b0464b10c5fd1f66 (diff) | |
force cache revalidation for (unversioned) html
| -rw-r--r-- | nginx/nginx.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index fae1bb9f..cae0ed50 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -254,14 +254,14 @@ http { include snippets/security-headers-base.conf; add_header Content-Security-Policy "default-src 'none'; child-src 'self'; connect-src 'self' https://releases.grapheneos.org/; font-src 'self'; img-src 'self'; manifest-src 'self'; script-src 'self'; style-src 'self'; form-action 'none'; frame-ancestors 'none'; block-all-mixed-content; base-uri 'none'" always; add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), xr-spatial-tracking=()" always; - add_header Cache-Control "public, max-age=1800"; + add_header Cache-Control "public, no-cache"; include snippets/preload.conf; try_files $uri.html =404; } location / { include snippets/security-headers.conf; - add_header Cache-Control "public, max-age=1800"; + add_header Cache-Control "public, no-cache"; include snippets/preload.conf; try_files $uri $uri.html $uri/ =404; } |
