Most caching bugs come from treating HTML documents and fingerprinted static assets with the same header policy.
When filenames include a content hash, browsers and CDNs can cache them aggressively without hurting deployments:
Cache-Control: public, max-age=31536000, immutable
Always allow conditional revalidation on index.html so new deployments propagate on the very next refresh:
Cache-Control: public, max-age=0, must-revalidate
For Server-Sent Events or chunked responses, disable proxy buffering and intermediary compression so frames flush immediately:
Cache-Control: no-store, no-cache, no-transform
X-Accel-Buffering: no