CF-Cache-Status Explained: DYNAMIC, BYPASS, HIT and MISS
During a cache incident, capture the exact URL and response headers before purging anything. A stale storefront body can come from several caches with different owners.
DYNAMIC means the request was ineligible for cache lookup. Check whether the content type, request or cache rule should make it eligible. BYPASS can reflect an origin directive or cookie that prevents caching. Never enable shared caching on the strength of this header alone. First confirm the URL serves the same public response to everyone.
Procedure
- Use repeatable requests. Load the same public URL in a clean session and capture the response status, Age, Cache-Control and CF-Cache-Status. Compare anonymous and authorized responses without exposing session headers.
- Read the cache result. HIT and MISS describe whether the edge served a stored entry. DYNAMIC or BYPASS suggests another cache rule or header path. Verify the intended rule for the URL and request state.
- Check the source. Compare a supported origin preview and application logs for the exact response variation. Avoid treating a forced cache miss as proof ordinary visitors get the new version.
- Retest after a narrow fix. Change only the responsible rule or purge scoped URLs. Verify refreshed public content and confirm account, cart and checkout routes remain isolated.
If the site runs WooCommerce, audit WooCommerce cart and account cache isolation to confirm personalized responses cannot be shared between sessions.
If the browser keeps changing URLs, trace the redirect chain before adjusting the cache.
Related guides
- How Browser Caching Improves Website Performance
- How to Diagnose Stale Content and HTTP 304 Responses
- SEO and Website Performance articles
Official references
Ferkesh Hosting. Last reviewed .
Obrigado pela sua opinião!