server { listen 80; root /usr/share/nginx/html; # Hashed build assets never change. location /_nuxt/ { add_header Cache-Control "public, max-age=31536000, immutable"; try_files $uri =404; } # Prerendered pages, else the SPA shell for client-side routes like /village/12. location / { add_header Cache-Control "no-cache"; try_files $uri $uri/index.html /200.html; } }