fix: admin panel — password rotation, vehicle edit DOM clash, nginx cache headers

This commit is contained in:
Lago
2026-04-17 17:58:12 +02:00
parent 61517879e1
commit 73aa72b7ee
3 changed files with 19 additions and 12 deletions
+6 -2
View File
@@ -13,10 +13,14 @@ server {
try_files $uri $uri/ /index.html;
}
# Static assets can be cached aggressively.
location ~* \.(?:css|js|jpg|jpeg|png|webp|svg|ico|woff2?)$ {
# Static assets: images/fonts can be cached, JS/CSS must revalidate.
location ~* \.(?:jpg|jpeg|png|webp|svg|ico|woff2?)$ {
expires 7d;
add_header Cache-Control "public";
try_files $uri =404;
}
location ~* \.(?:css|js)$ {
add_header Cache-Control "no-cache";
try_files $uri =404;
}
}