server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; error_page 404 /404.html; add_header Cache-Control "no-cache" always; location = /404.html { add_header Cache-Control "no-store" always; } location ^~ /assets/ { add_header Cache-Control "public, max-age=31536000, immutable"; try_files $uri =404; } location = /runtime-config.js { add_header Cache-Control "no-store" always; try_files $uri =404; } location ~ ^/faq/?$ { try_files /index.html =404; } location ~ ^/profile/[^/]+(/(labels|labeled-posts|blocking|blocked-by|lists|listed-on|feed))?/?$ { add_header Cache-Control "no-cache" always; add_header X-Robots-Tag "noindex" always; try_files /index.html =404; } location ~ ^/list/[^/]+/[^/]+/?$ { add_header Cache-Control "no-cache" always; add_header X-Robots-Tag "noindex" always; try_files /index.html =404; } location / { try_files $uri $uri/ =404; } }