| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- server {
- listen 80;
- server_name _;
- root /usr/share/nginx/html;
- index index.html;
- add_header X-Content-Type-Options "nosniff" always;
- add_header Referrer-Policy "strict-origin-when-cross-origin" always;
- location = /healthz {
- access_log off;
- return 204;
- }
- location = /index.html {
- add_header Cache-Control "public, max-age=0, must-revalidate" always;
- try_files $uri =404;
- }
- location = /compare.html {
- add_header Cache-Control "public, max-age=0, must-revalidate" always;
- try_files $uri =404;
- }
- location ~* \.(?:js|mjs|css|wasm|worker|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
- add_header Cache-Control "public, max-age=31536000, immutable" always;
- try_files $uri =404;
- }
- location /example/ {
- add_header Cache-Control "public, max-age=86400" always;
- try_files $uri =404;
- }
- location /vendor/ {
- add_header Cache-Control "public, max-age=31536000, immutable" always;
- try_files $uri =404;
- }
- location / {
- try_files $uri $uri/ /index.html;
- }
- }
|