server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # Static website (Eleventy output). Long-cache the hashed assets; let HTML # revalidate so content updates show promptly. location ~* \.(?:css|js|svg|png|jpg|jpeg|gif|ico|woff2?)$ { add_header Cache-Control "public, max-age=2592000"; } location / { add_header Cache-Control "no-cache, must-revalidate"; try_files $uri $uri/ $uri.html =404; } }