Add no-store cache header on index.html in nginx

This commit is contained in:
MerlinScheurer 2025-08-19 23:07:34 +02:00
parent 9e6509f7d1
commit d2a6bdb18c
1 changed files with 10 additions and 0 deletions

View File

@ -50,7 +50,17 @@ server {
root /app/static;
index index.html;
location ~* .(?:css|js)$ {
try_files $uri $uri/ /index.html =404;
}
location = /index.html {
add_header Cache-Control 'no-store';
expires 0;
}
location / {
add_header Cache-Control 'no-store';
try_files $uri $uri/ /index.html =404;
}
}