server { listen 10001; root /usr/share/nginx/html; index index.html; location /assets/ { add_header Cache-Control "public, max-age=31536000, immutable"; } location / { add_header Cache-Control "no-cache"; try_files $uri /index.html; } }