server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location ~* \.html$ { add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Pragma "no-cache"; add_header Expires "0"; } location = / { add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Pragma "no-cache"; add_header Expires "0"; try_files /index.html =404; } location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot|mp4|webm)$ { add_header Cache-Control "public, max-age=31536000, immutable"; } location / { try_files $uri $uri/ =404; } }