nginx: static file cache headers without surprises
For assets, set Cache-Control explicitly and keep HTML uncached separately.
sudo nginx -T | grep -n "Cache-Control"
curl -I https://example.com/assets/app.css
curl -I https://example.com/
Verify the result
CSS/JS should have long cache, while HTML should be short-lived or no-cache.