force cache revalidation for (unversioned) html
This commit is contained in:
parent
4b6b1b6181
commit
6160770d00
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user