Changed cache expiry from 1 year to 1 hour and removed immutable flag to allow browser cache updates. The 1-year cache was preventing logo updates from being visible without clearing browser cache. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
718 B
Plaintext
29 lines
718 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Enable gzip compression
|
|
gzip on;
|
|
gzip_types text/css application/javascript image/jpeg image/png;
|
|
gzip_min_length 1000;
|
|
|
|
# Cache static assets (reduced for development)
|
|
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
|
|
expires 1h;
|
|
add_header Cache-Control "public, max-age=3600";
|
|
}
|
|
|
|
# Main location
|
|
location / {
|
|
try_files $uri $uri/index.html /index.html;
|
|
}
|
|
|
|
# Security headers
|
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-XSS-Protection "1; mode=block" always;
|
|
}
|