fix: update nginx configuration for caching, gzip compression, security headers, and error handling
This commit is contained in:
+2
-2
@@ -22,6 +22,8 @@ server {
|
||||
}
|
||||
location ~* \.(?:css|js)$ {
|
||||
add_header Cache-Control "no-cache";
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# SEO files - cache for 1 week
|
||||
location = /robots.txt {
|
||||
@@ -61,6 +63,4 @@ server {
|
||||
# Error pages
|
||||
error_page 404 /index.html;
|
||||
error_page 500 502 503 504 /index.html;
|
||||
try_files $uri =404;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user