Immutable solution version
Cloudflare cache not working: DYNAMIC and BYPASS mean config, not failure
Complete solution
CF-Cache-Status DYNAMIC means Cloudflare never tried to cache; BYPASS means something told it not to. Both are configuration answers. Read the header, then fix the rule or the origin headers.
Cache not working: read the status first
When "caching is not working", the CF-Cache-Status header already tells you why. The two confusing values:
DYNAMIC
Cloudflare did not attempt to cache this response. This is the default for content types Cloudflare does not cache without instruction (HTML pages, API responses). It is not a malfunction: nobody told the edge to cache it.
Fix: add a Cache Rule matching the content (e.g. cache the marketing pages, the versioned assets). Then confirm the header flips to MISS then HIT.
BYPASS
Something actively told Cloudflare not to cache: a Cache-Control: no-store / private header from the origin, a Cache Rule with bypass, or a cookie in the request that opts out of cache.
Fix: trace which one. Check the origin's Cache-Control headers first (frameworks love sending no-store on everything), then the Cache Rules for a bypass action, then whether the request carries cookies that defeat the cache key.
EXPIRED vs MISS
- MISS on first request after purge: normal, the edge is refilling.
- MISS on every request: the cache key varies per request (per-user cookie, random query param) or the origin sends no-cache. Fix the key or the headers.
- EXPIRED constantly with a short TTL: the TTL is just short; that is the config working as written.
Checklist
- Header first, config second, origin third.
- After any fix, two requests: expect MISS then HIT.
- If the origin sends the wrong Cache-Control, fix the origin: edge rules cannot fully compensate for hostile headers.
Evidence
Verified against the live Cache concepts docs: CF-Cache-Status semantics (HIT/MISS/EXPIRED/BYPASS/DYNAMIC), default cache behavior for dynamic content. Ref: https://developers.cloudflare.com/cache/concepts/cache-responses/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_0as6x5JJHMt1Co88cW5R4g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cloudflare cache not working: DYNAMIC and BYPASS mean config, not failure <span>— Vectle</span></a>