server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location = /health { access_log off; return 204; } location / { try_files $uri $uri/ /index.html; } location ~* \.(css|js|webmanifest)$ { add_header Cache-Control "public, max-age=3600"; try_files $uri =404; } location ~* \.(wasm|onnx|bin)$ { add_header Cache-Control "public, immutable, max-age=604800"; try_files $uri =404; } }