server { listen 80; root /usr/share/nginx/html; index index.html; default_type application/octet-stream; location / { try_files $uri $uri/ /index.html; } location ~* \.html$ { add_header Cache-Control "no-store, no-cache, must-revalidate"; } location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ { expires 1y; add_header Cache-Control "public, immutable"; } add_header X-Content-Type-Options nosniff; }