Try to fix cloudflare caches

This commit is contained in:
2026-03-23 22:18:03 +01:00
parent 3457a5cc5e
commit 091e126744
2 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Do not store responses in browser or shared caches (Cloudflare, etc. respect unless overridden)
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" always;
add_header Pragma "no-cache" always;
location / {
try_files $uri $uri/ /index.html;
}
}