What each cf-cache-status value means
· sitewarm
cf-cache-status is the response header Cloudflare adds to say what its cache did with a request. It has more values than hit and miss, and the one that confuses people most is DYNAMIC, which often appears on an HTML page that someone expected to be cached. This article explains what each value means, the difference between DYNAMIC and BYPASS, and which parts of the picture a header cannot show.
It is written from Cloudflare's own documentation and RFC 9111, read on 2026-11-18. Documentation changes, so check the pages listed under Sources before acting on a detail. Where the sources disagree or say nothing, the article says so. The commands and headers are illustrative, not captured from a real site.
What the header is, and what the standard says
The header and its values come from Cloudflare. RFC 9111, the HTTP caching standard, does not define cf-cache-status. It defines the rules a cache follows to store and reuse responses, and one header that is relevant here: `Age`, which "conveys the sender's estimate of the time since the response was generated or successfully validated at the origin server". The standard header meant to report cache handling is `Cache-Status`, defined in a separate RFC (RFC 9211). Whether a response carries it depends on the CDN.
So the value of cf-cache-status is Cloudflare's own report about one response. Read it with the other headers on the same response, as in how to read Age, Cache-Control and X-Cache.
# Illustrative command, placeholder domain
curl -s -D - -o /dev/null https://www.example.com/ | grep -i -E '^(cf-cache-status|age|cache-control):'RFC 9110 says field names are case-insensitive, so CF-Cache-Status in the Cloudflare documentation and cf-cache-status in a response are the same field.
Every value, in the order a request meets them
Cloudflare's cache responses page lists these values. The wording below is a paraphrase of that page, grouped by what happened.
| Value | What Cloudflare says it means |
|---|---|
HIT | The resource was found in Cloudflare's cache. |
MISS | The response is eligible for cache but was not present in the cache at request time, so it came from the origin. Responses Cloudflare chooses not to cache return BYPASS instead of MISS. |
EXPIRED | A copy was in the cache but had expired, and the response was served from the origin. |
REVALIDATED | The origin confirmed through a conditional request that the cached copy was unchanged, and the response is served from the cache. The request waited for the origin to answer. |
UPDATING | A copy had expired but was served from the cache while the origin updates it in the background. |
STALE | A copy had expired and was served from the cache because Cloudflare could not contact the origin. |
BYPASS | The request was treated as eligible for cache, but the origin response was ultimately not cacheable. |
DYNAMIC | Cloudflare decided at request time that the asset is not eligible for cache, so the request went to the origin without a cache lookup. |
NONE/UNKNOWN | Cloudflare generated the response itself, and it is not eligible for caching. The page gives examples: a Worker that answers without making a subrequest, a WAF custom rule that blocks the request, and a redirect rule or Always Use HTTPS that answers with a redirect. |
Three of these describe a copy that exists but is past its lifetime, and they differ in what the cache did next. EXPIRED and REVALIDATED both involve going to the origin, and the second means the origin said the copy was still good. This matches the validation mechanism in RFC 9111 section 4.3, where a cache uses a conditional request to let the next server choose a valid stored response or replace it. UPDATING and STALE both serve the old copy: the first while a refresh happens in the background, the second because the origin could not be reached.
The Age header is not set on every status. The same Cloudflare page says it sets Age on HIT, STALE and UPDATING, and does not set it on MISS, on EXPIRED or REVALIDATED when the request went back to the origin, on DYNAMIC, on BYPASS or on NONE/UNKNOWN. It adds that if the origin sets Age on an uncacheable response, that value is passed to the client unchanged, so a DYNAMIC or BYPASS response can carry an Age that came from the origin and not from Cloudflare.
Why a page shows DYNAMIC
DYNAMIC is a statement about eligibility, made before the cache is consulted. Cloudflare's cache responses page lists three typical causes:
- The asset is not one of the default cached file extensions, and no rule tells Cloudflare to cache it. The page gives HTML and JSON as examples.
- A Cache Rule with the Bypass cache setting matches the request. The page says the legacy Cache Level: Bypass option in Configuration Rules or Page Rules behaves the same way.
- Development Mode is on for the zone. The page says it suspends cache for three hours.
The first cause is the one that catches HTML. Cloudflare's default cache behavior page says Cloudflare caches based on file extension and not on MIME type, and that the CDN does not cache HTML or JSON by default. It points to Cache Rules as the way to cache additional content, and names a rule to cache everything. A response can therefore carry a perfectly cacheable Cache-Control header and still show DYNAMIC, because the header was never the gate.
The Cache Rules settings page adds a detail about the second cause. When a Custom Cache Rule with a Bypass setting applies, the response header may show DYNAMIC rather than an explicit bypass, because either the asset was already ineligible or the rule makes it ineligible, even if the origin response would otherwise be cacheable.
A DYNAMIC page is not a cold cache. Nothing is waiting to be filled. Requesting it again does not change the status, and what changes it is one of the three causes above.
DYNAMIC and BYPASS differ in when the decision is made
The cache responses page draws the line explicitly. DYNAMIC means Cloudflare determined at request time that the asset is not eligible. BYPASS means the request was initially eligible, either because it matches a default cached file extension or because a Cache Rule enabled caching for it, but the decision not to cache was made at response time, from the origin response or its headers.
The page gives an example that matters for HTML. If you configured a Cache Rule with Eligible for cache set to Yes on HTML content and the origin returns a non-cacheable Cache-Control directive, the response shows BYPASS, not DYNAMIC. DYNAMIC is only returned when Cloudflare decides the asset is not eligible at request time.
That makes the two statuses point to different places to look:
DYNAMIC: look at what Cloudflare is configured to cache. File extension, Cache Rules, Development Mode. Changing the origin's headers alone is not what the page describes as the fix.BYPASS: look at the origin response. The same page lists common reasons the origin response is treated as not cacheable.
The reasons it lists for BYPASS include: the response exceeds the maximum cacheable file size for the plan; the origin returned no-store or a bare private in Cloudflare-CDN-Cache-Control or CDN-Cache-Control (Cloudflare evaluates those ahead of Cache-Control, as covered in CDN-Cache-Control); the origin returned Cache-Control: no-store or private; the origin returned Vary: *; and a Set-Cookie header. For Set-Cookie the page does not state a blanket rule. It refers to a separate page for the configurations that produce BYPASS, and that page was not read for this article. Not verified: which Set-Cookie configurations produce BYPASS.
The page also lists a request condition. When the request has an Authorization header and Origin Cache Control is enabled, the response is cacheable only if Cache-Control also includes public, s-maxage or must-revalidate. RFC 9111 section 3.5 states the same limit for shared caches in general: a shared cache must not use a cached response to a request with an Authorization header unless the response carries a directive that allows it, and the RFC names must-revalidate, public and s-maxage as those directives.
no-cache and max-age=0: the pages do not say the same thing
This is the part of the documentation to read carefully, because three Cloudflare pages describe no-cache and max-age=0 and they are not phrased consistently. Each statement below is attributed to its page.
- Default cache behavior: Cloudflare does not cache the resource when
Cache-Controlisprivate,no-store,no-cacheormax-age=0. - Cache responses, under
BYPASS: with Origin Cache Control enabled,no-cache,max-age=0ands-maxage=0cause Cloudflare to cache and revalidate the response, producingREVALIDATEDorEXPIRED. With it disabled, they produceBYPASS. The page says Origin Cache Control is enabled by default on every plan except Enterprise, where it is disabled by default. - Origin Cache Control page: its directive table says
no-cacheandmax-age=0mean no caching when the feature is disabled, and caching with revalidation when it is enabled. Its conditions table adds that forno-cache, logs showcacheStatus=misswhen disabled andcacheStatus=bypasswhen enabled.
The Origin Cache Control page and the cache responses page agree on the enabled case: cache and revalidate. The default cache behavior page states the unconditional version and does not mention the setting. One more difference: the Origin Cache Control conditions table records cacheStatus=bypass in logs for no-cache when the setting is enabled, while the cache responses page says the header shows REVALIDATED or EXPIRED. Not verified: how the log value relates to the response header, and whether the default cache behavior page is simplified for the enabled case. Treat the outcome for no-cache and max-age=0 as depending on Origin Cache Control and on the plan, and confirm it for your zone by requesting the page and reading the status.
For the meaning of the directives themselves, as opposed to Cloudflare's handling of them, see Cache-Control for HTML pages behind a CDN.
What one header cannot show
- It reports one response. It is not a report on every location Cloudflare serves from, and none of the pages read for this article describe how a status relates across locations. Not verified: how a
MISSin one place relates to aHITin another. - It does not name the cause.
DYNAMICsays the request was ineligible, not which of the three causes applies. The origin'sCache-Controland your Cloudflare rules are the evidence for that. - A
HITdoes not say the copy is fresh in the standards sense. ReadAgeandCache-Controlalongside it. - The header is Cloudflare's wording. Another CDN uses other headers and other values, which the CDN guides cover one at a time.
A short reading order
- Read
cf-cache-statusfirst. If it isDYNAMIC, check the file extension, your Cache Rules and Development Mode. If it isBYPASS, check the origin response headers. - If it is
MISS, the request was eligible and the copy was not there. The docs do not say what a second request will return, so request it again and read the status rather than assume. - If it is
EXPIRED,REVALIDATED,UPDATINGorSTALE, a copy exists and the question is its freshness and what the cache did about it. ReadAgeandCache-Control. - If it is
NONE/UNKNOWN, check whether a Worker, a WAF rule or a redirect answered before the cache. - A different header name or no header at all means a different CDN or a response that did not pass through Cloudflare's cache path. Do not read
cf-cache-statusinto it.
Where sitewarm fits
After a Production deploy, the open-source sitewarm GitHub Action checks the pages you choose and posts a GitHub Check on the commit. It turns red when a page starts returning an error, becomes noindex, or stops being served from cache, compared with your previous Production deploy. It is measured from the GitHub runner, from one CDN point of presence.
Frequently asked questions
Why does my HTML page show cf-cache-status: DYNAMIC?
Cloudflare's cache responses page says DYNAMIC means Cloudflare decided at request time that the asset is not eligible for cache, so the request went to the origin without a cache lookup. It lists three typical causes: the asset is not one of the default cached file extensions (HTML and JSON are examples) and no rule says to cache it, a Cache Rule with the Bypass cache setting matches, or Development Mode is on.
What is the difference between DYNAMIC and BYPASS?
Cloudflare's documentation separates them by when the decision is made. DYNAMIC is decided at request time, before any cache lookup. BYPASS is decided at response time: the request was eligible for cache, but the origin response or its headers said not to cache it.
Does a MISS mean caching is not working?
Not by itself. Cloudflare defines MISS as a response that is eligible for cache but was not present in the cache at request time, so it came from the origin. A response Cloudflare chooses not to cache is reported as BYPASS instead.
Is cf-cache-status part of an HTTP standard?
No. RFC 9111 defines how HTTP caches store and reuse responses, and the Age header, but it does not define cf-cache-status. The header and its values are described by Cloudflare. See Cache-Status for the standard header that reports cache handling.
References
- Cloudflare: cache responses (CF-Cache-Status)https://developers.cloudflare.com/cache/concepts/cache-responses/
- Cloudflare: default cache behaviorhttps://developers.cloudflare.com/cache/concepts/default-cache-behavior/
- Cloudflare: Origin Cache Controlhttps://developers.cloudflare.com/cache/concepts/cache-control/
- Cloudflare: Cache Rules, available settingshttps://developers.cloudflare.com/cache/how-to/cache-rules/settings/
- RFC 9111: HTTP Cachinghttps://www.rfc-editor.org/rfc/rfc9111
- RFC 9110: HTTP Semanticshttps://www.rfc-editor.org/rfc/rfc9110
- RFC 9211: The Cache-Status HTTP Response Header Fieldhttps://www.rfc-editor.org/rfc/rfc9211
See the cache state your CDN returns for each page
sitewarm requests pages from your sitemap, up to the scan's URL limit, after a deploy and reports the cache state the CDN returns for each one, with the vantage point it was measured from.