Browser troubleshooting
Distinguish browser cache from CDN cache
A hard reload changes browser cache behavior but may still receive a stale response from a CDN or service worker. Inspect response headers and content at each layer before deciding the deploy failed.
Worked example
Worked reference example
Compare these observations:
- The public URL's response body and status.
- Cache-Control, Age, ETag, and provider-specific cache headers.
- Whether a service worker handled the request.
- Whether the deployed HTML points to the new asset URL.
- Whether the host completed the intended deployment.How it works
Different caches can hold different representations at once. Versioned asset names make updates clearer because new HTML requests a new URL. A timestamp query can aid a controlled diagnosis, but it should not replace a coherent cache policy.
Limits and mistakes
No one header proves the entire cache path, and developer-tool settings only affect the current browser context. Avoid instructing every visitor to clear all browsing data. Fix versioning, revalidation, or deployment configuration at the responsible layer.
Check the result
Capture the actual old and new bytes, not just a screenshot that looks unchanged. Confirm a fresh request receives the intended version and normal later visits also update correctly.
Sources
Reference documentation for the behavior used in this guide: