panel glowny poprawki

This commit is contained in:
2026-08-11 17:07:34 +02:00
parent b30a0b9b95
commit 1e361bde93
33 changed files with 3926 additions and 587 deletions
+12
View File
@@ -14,6 +14,18 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Pliki z hashem w nazwie (assets/index-XXXX.js) sa niezmienne - mozna je trzymac dlugo.
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable";
}
# index.html nigdy nie moze byc cache'owany - inaczej przegladarka po wdrozeniu
# nadal laduje stary bundle i uzytkownik pracuje na nieaktualnej wersji aplikacji.
location = /index.html {
add_header Cache-Control "no-store, must-revalidate";
}
location / {
try_files $uri $uri/ /index.html;
}