попытка победить кэш

This commit is contained in:
FrigaT
2026-04-15 20:24:08 +03:00
parent 0732eab325
commit 203506be28
2 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,14 @@ http {
add_header Expires "0";
try_files $uri =404;
}
# Для файла index.html тоже не кэшируем
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
try_files $uri =404;
}
# Основной SPA fallback: все неизвестные пути отдаём через index.html
location / {