fix: admin panel — password rotation, vehicle edit DOM clash, nginx cache headers
This commit is contained in:
+6
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user