server { listen 8080; listen [::]:8080; server_name _; root /srv/crystal; index index.html; # Revalidate the shell and service worker so installed apps see updates. add_header Cache-Control "no-cache" always; # Vite fingerprints these files; their URLs change with their content. location /assets/ { add_header Cache-Control "public, max-age=31536000, immutable"; try_files $uri =404; } location / { try_files $uri $uri/ =404; } }