Back to Cloudflare

Why a CDN Cache Hit Changes the Request Journey

November 4, 2026 Updated November 6, 2026 Wasil Zafar 27 min read

Learn cacheability, freshness, validators, and origin behavior

Table of Contents

  1. Browser, Edge, and Origin Have Different Responsibilities
  2. Freshness, ETags, and Conditional Requests
  3. What Makes a Response Eligible for Caching
  4. Reading a Hit, Miss, Bypass, and Dynamic Response
  5. Compare Repeated Requests for Static and Dynamic Content
  6. Explain Cache Status and Origin Request Counts

Browser, Edge, and Origin Have Different Responsibilities

A visitor opens your pricing page for the second time today. The HTML is 18 KB, the stylesheet is 240 KB, and the hero image is 900 KB. By the time the page renders, that stylesheet may exist in three places at once: on the visitor's laptop, in a Cloudflare data center a few milliseconds away, and on the origin server that produced it. All three copies are the same bytes. Only one of them is authoritative, and that is the one nobody wants to ask.

This is the subject in miniature. Caching is not a switch; it is a written instruction about who may keep a copy, for how long, and what they must do before reusing it. Get it wrong and the failure is rarely "the site is slow" — it is usually "the site is fast and wrong".

Define the terms before the headers.

A cache is a store of HTTP responses that can answer a request without contacting the layer behind it. A cache key is the identifier used to look a response up; two requests with different keys never share a copy, even at the same path. A private cache serves one user — the browser. A shared cache serves many — the CDN, a corporate proxy, or a reverse proxy.

Freshness is how long a stored copy may be reused without checking. A validator is a value — an ETag or a Last-Modified date — that lets a cache ask "has this changed?" without downloading the body again. The origin owns the truth and writes the headers; the edge is Cloudflare's network, which may hold a copy but never owns it.

A useful analogy is an office mailroom. The master document lives in the archive. The reception desk keeps one photocopy for whoever asks. Each employee keeps their own copy in a drawer. The archive decides what is written on the back of that photocopy: valid for one hour, do not copy this at all, this copy is for the named person only. The receptionist is not being obstinate when they refuse to hand over a copy — they are following the instruction printed on it. That instruction set is Cache-Control.

Figure 1 shows the three holdings and who may answer. Note what the arrows do not show: the edge never asks the browser for anything, and the origin never learns a hit happened.

Browser, Edge, and Origin Have Different Responsibilities
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    subgraph B["Browser — private cache, one user"]
        B1["Request /assets/app.css"] --> B2{"Copy present
and still fresh?"} B2 -- "yes" --> B3["Render from local copy
no network request at all"] end subgraph E["Cloudflare edge — shared cache, many users"] E1["Look up cache key
URL + selected headers"] --> E2{"Object present
and unexpired?"} E2 -- "yes" --> E3["HIT: serve copy
Age: 37"] E2 -- "no" --> E4["MISS or EXPIRED:
ask the origin"] end subgraph O["Origin — authoritative, owns the headers"] O1["Render page or read storage"] --> O2["Reply with body plus
Cache-Control, ETag"] end B2 -- "no" --> E1 E4 --> O1 O2 --> E5{"Response cacheable?"} E5 -- "yes" --> E6["Store under cache key"] E5 -- "no" --> E7["Pass through, store nothing"] E6 --> E3 E3 --> B3 E7 --> B3 classDef primary fill:#132440,color:#ffffff,stroke:#0b172b; classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a; classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f; classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420; classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f; class O2 primary; class B1,B2,B3,E1,O1,E6,E7 secondary; class E3,E5 ok; class E2,E4 danger;

Figure 2 draws the same three layers as a boundary diagram, because the interesting part is not the boxes but where trust stops. Everything to the left of the first boundary is under the visitor's control; everything to the right of the second is under yours.

Three cache layers separated by two trust boundaries A browser holds a private copy per user, the Cloudflare edge holds one shared copy per cache key, and the origin holds the authoritative response. Trust boundaries sit between browser and edge, and between edge and origin. visitor-controlled your policy your data Browser one copy per user obeys max-age keeps ETag for reloads survives reload, not device Cloudflare edge one copy per cache key obeys s-maxage, no-store adds Age, CF-Cache-Status shared by every visitor Origin authoritative bytes writes the validators sees misses and 304s pays for every fill miss body miss body A hit on the left prevents a request to the right. Policy set on the right is invisible in the middle. Cache-Control travels with the response and constrains every shared cache that stores it. Cloudflare applies origin directives first, then any Cache Rule that overrides them. Figure 2: boundaries, not pipes — each layer keeps its own copy.

The consequence of Figure 2 is that "clear the cache" is ambiguous: you can purge the edge copy, you can ask a browser to revalidate, and you cannot reach a laptop that is offline in an airport.

Freshness, ETags, and Conditional Requests

Freshness is arithmetic. A response has a lifetime, set by max-age, s-maxage, or the older Expires date, and an age: seconds since it was fetched. It is fresh while age is below lifetime, and stale after that.

Three releases, one stylesheet. Same bytes, three instruction sets. The table follows each copy from origin to browser.

ReleaseOrigin sendsBrowser cacheCloudflare edgeOrigin sees
Apublic, max-age=600Keeps 10 minKeeps 10 min; no s-maxageA fetch every 10 min per cache location
Bpublic, max-age=600, s-maxage=3600Keeps 10 minKeeps 60 minNothing until the edge copy expires
Cprivate, max-age=0, must-revalidate plus ETagStores, but revalidates before reuseRefuses to store; reports BYPASSOne conditional request per view, usually 304

Age keeps long edge TTLs honest

The edge copy can outlive the browser's. At minute 25 of Release B, the edge answers with a HIT and an age of 1500 seconds; the origin has not been contacted since the fill.

Age is what keeps the combination honest. A visitor who clears their cache at that moment receives Age: 1500 against a ten-minute max-age and, following RFC 9111, must treat the response as stale.

A validator is not a TTL. Release C stores nothing at the edge and pays one conditional request per view, usually answered 304 with no body. That saves bytes and origin CPU, not distance: a 304 is a cheap round trip, not a free one.

Two validator flavours. An ETag is an opaque string: strong when it identifies an exact byte sequence, weak when it carries a W/ prefix and identifies semantic equivalence. A Last-Modified timestamp has one-second granularity, so two changes inside the same second are indistinguishable.

Precedence is defined. When both are present, If-None-Match wins and If-Modified-Since is ignored. Cloudflare supports both and issues the conditional request upstream on expiry, which is what produces the REVALIDATED status.

The check is cheap, not free. A conditional request still crosses the network; it just carries no body when the copy matches.

# Ask the origin to confirm a stored copy without resending the body.
curl -sS -D - -o /dev/null \
  -H 'If-None-Match: "v42"' \
  https://www.example.com/assets/app.css
HTTP/2 304
etag: "v42"
cache-control: public, max-age=600, s-maxage=3600

The table below sets the directives side by side. Read the second and third columns as two different audiences, not two versions of the same rule.

Directive or validatorPrivate browser cacheCloudflare shared cacheWhat it prevents
max-age=600Stores for 600 s; no request while freshUsed only when s-maxage is absentA repeat download on every page view
s-maxage=3600Ignored entirelyOverrides max-age; implies proxy-revalidateThe edge expiring as fast as a browser tab
privateMay store for that one userNot stored; reported as BYPASS by defaultOne visitor's page served to another
no-storeNot written to memory or diskNot storedSecrets lingering on shared infrastructure
no-cacheStores, revalidates before every reuseWith Origin Cache Control on, stores and always revalidatesReusing an object without asking the origin
ETag + If-None-MatchRevalidates on reload; expects 304Revalidates on expiry; 304 resets the TTLResending an unchanged body
Last-Modified + If-Modified-SinceSame, at one-second precisionSame; synthesised when the origin sends neither validatorWasted bytes when no ETag exists
stale-while-revalidate=30May serve stale briefly after expiryServes stale, refreshes in background, reports UPDATINGA slow origin stalling the first visitor after expiry

stale-while-revalidate cancels itself

The refresh is asynchronous. The first request after expiry triggers the upstream fetch and immediately gets the stale copy with UPDATING; requests during the fetch keep getting the same status; once the origin answers, later requests get HIT. Nothing blocks.

Four directives switch it off, because each forbids serving stale content:

  • must-revalidate
  • proxy-revalidate
  • s-maxage, which implies proxy-revalidate
  • no-cache

The popular recipe cancels itself. A long edge TTL expressed as s-maxage contradicts stale-while-revalidate, so the status degrades to EXPIRED.

The documented workaround is to send max-age with stale-while-revalidate and set the edge TTL separately with an Edge Cache TTL Cache Rule.

Figure 3 traces one expiry with all three outcomes: a background revalidation that finds no change, one that finds a change, and one where the origin fails inside a stale-if-error window.

Freshness, ETags, and Conditional Requests
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
sequenceDiagram
    autonumber
    participant B as Browser
    participant E as Edge cache
    participant O as Origin

    B->>E: GET /assets/app.css
    E->>E: Look up cache key
    alt Fresh copy in cache
        E-->>B: 200 HIT, Age 37
    else Expired, stale-while-revalidate allowed
        E-->>B: 200 UPDATING, stale body
        E->>O: GET with If-None-Match
        alt 304 Not Modified
            O-->>E: 304, no body
            E->>E: Reset freshness, Age 0
        else 200 with new body
            O-->>E: 200, ETag v43
            E->>E: Replace stored object
        else 503 within stale-if-error
            O-->>E: 503
            E-->>B: 200 STALE, Age 120
        end
    else Expired, must-revalidate
        E->>O: GET with If-None-Match
        O-->>E: 200, ETag v43
        E-->>B: 200 EXPIRED, new body
    end

The ETag you see is not the one you sent

Cloudflare recompresses responses to match Accept-Encoding, and in doing so it may weaken a strong ETag or drop it. The Respect Strong ETags Cache Rule prevents that, but enabling it disables Rocket Loader, Email Obfuscation, and Automatic HTTPS Rewrites — features that rewrite HTML and can strip weak tags anyway.

On a cache MISS for a cacheable resource, Cloudflare sends no ETag upstream at all: it needs the full body to fill the cache. That is why revalidation rates can look inexplicable in origin logs.

The product boundary matters here and is easy to misstate. Origin Cache Control — the switch that makes Cloudflare strictly follow origin directives — is selectable only on Enterprise plans. Free, Pro, and Business zones have it enabled by default and cannot disable it. That asymmetry explains a whole class of "it behaves differently in staging" tickets:

  • On Free/Pro/Business, max-age=0 and no-cache mean store and revalidate. You get MISS first, then REVALIDATED or EXPIRED, never BYPASS.
  • On Enterprise with Origin Cache Control off, the same headers mean do not store, and every request goes to the origin.
  • On any plan, no-store and private mean do not store.

Age can outlive the local cache. With Tiered Cache enabled, an upper tier sits behind the local edge, and Age reflects the object's age in the network-wide cache rather than time since the local fill — so a local HIT can legitimately report an age older than the local cache has existed. Tiered Cache, Cache Reserve, and Regional Tiered Cache are separate products with their own plan requirements; this article assumes only the standard CDN tier.

What Makes a Response Eligible for Caching

Two decisions happen at two different moments, and conflating them causes most cache-status confusion.

Defaults fill the gap. If the origin sends no caching headers at all, Cloudflare still caches some status codes: 120 minutes for 200, 206 and 301; 20 minutes for 302 and 303; and 3 minutes for 404 and 410. Every other status code is not cached by default.

Authorization changes the default. A request carrying that header prevents caching unless the response opts in with a public, s-maxage, or must-revalidate directive — and only with Origin Cache Control on, the default on Free, Pro, and Business. HTML and JSON are absent from the default extension list, which is why an unconfigured static site appears to work while an unconfigured API returns DYNAMIC forever.

Public is not a promise of speed

Cache-Control: public does not mean "make this faster". It means "any shared cache may store this and hand it to anyone who presents the same cache key". If the page varies by cookie, session, or tenant and the key does not include that dimension, public is an instruction to leak. The status code will look healthy — a HIT, with the age climbing — which is exactly why a customer finds this before a dashboard does.

The mechanism is worth naming. A cache computes a key and returns whatever is stored under it. Cloudflare's default key is the full URL (scheme, host, path, query string) plus a few headers — Origin for CORS, method-override headers, forwarded-host headers. Cookies and Authorization are not in it. A response that varies by user therefore cannot be distinguished from one that does not, unless you keep it out of the shared cache or add the distinguishing input to the key.

Cache deception turns eligibility against you. In a documented attack class, a visitor is tricked into requesting a URL that looks static but returns personalised content: a per-user page at /newsfeed, answered identically at /newsfeed/foo.jpg. Because the path ends in .jpg, Cloudflare caches it by default, and the attacker who requests the same URL afterwards receives the victim's copy.

Cache Deception Armor compares the path extension with the returned Content-Type and refuses a mismatch. It depends on Origin Cache Control, though, and an origin Cache-Control header or an Edge Cache TTL rule can override the protection. The general lesson holds for any CDN: a cache's security is the completeness of its key and the care of its eligibility rules, not the presence of a caching feature.

The same mechanism has a benign twin. When many requests arrive at one data center for an asset that is not cached, a cache lock collapses them into a single origin fetch and streams the result to the waiters. That is a stampede defence, but a local one: forty locations that all miss at once still send forty requests upstream. Tiered Cache exists to reduce that multiplier, which is why it belongs to the capacity conversation rather than the header conversation.

Reading a Hit, Miss, Bypass, and Dynamic Response

CF-Cache-Status is the shortest honest answer to "what did the cache do", provided you read all its values, not just HIT.

StatusMeaningDecision point
HITFound and served without contacting the originRequest time, then freshness
MISSEligible, absent; the origin was askedRequest time
EXPIREDFound but stale; the origin's response replaced the copyFreshness
REVALIDATEDOrigin confirmed the stored copy by conditional requestRevalidation
STALEOrigin unreachable; an expired copy was served, usually inside stale-if-errorError path
UPDATINGStale copy served while a background refresh ranRevalidation
BYPASSEligible request, unstorable responseResponse time
DYNAMICNo lookup happened at allRequest time
NONE / UNKNOWNSomething answered before the cache: a Worker with no subrequest, a WAF block, or a redirect ruleBefore the cache

BYPASS and DYNAMIC point at different layers. DYNAMIC is a request-time decision: wrong method, wrong extension, no rule, or Development Mode (which suspends caching for three hours). BYPASS is a response-time decision: the origin, or an intermediate header, said no. Fixing the first means writing a Cache Rule; fixing the second means changing what the origin emits.

Figure 4 traces the decision order. The important branch is the last one: a request can be perfectly eligible and still end up uncached because of a single response header.

Decision path that produces HIT, DYNAMIC, BYPASS, EXPIRED and MISS A request is checked for cache eligibility, then for a fresh stored copy, then the origin response is checked for storability. Each branch produces a different CF-Cache-Status value. GET /pricing Eligible at request time? method, extension, or Cache Rule no DYNAMIC no lookup happened yes Fresh copy in cache? age below freshness lifetime yes HIT Age 0 or more, no origin no Fetch origin: MISS or EXPIRED one request per cache location Response storable? private, no-store, Set-Cookie, Vary: * no BYPASS served, never stored yes Stored next request is a HIT Figure 4: DYNAMIC fails at the door; BYPASS fails at the response.

Two misconfigurations illustrate the branches, and both are common.

Cache Everything meets a session cookie. Apply it to a path whose origin sets Set-Cookie and, with no explicit edge TTL, Cloudflare preserves the cookie but stores nothing — every request returns MISS. The dashboard shows caching enabled and the origin sees 100% of traffic. Fix it by keeping that path out of the rule, or by not emitting the cookie on anonymous responses.

Age is not proof of an edge hit. Cloudflare sets it on HIT, STALE, and UPDATING, and not on MISS, DYNAMIC, BYPASS, or a synchronously revalidated EXPIRED. If your origin emits its own Age on an uncacheable response, Cloudflare proxies it through unchanged — so a DYNAMIC response can carry a plausible age of 42 with nothing to do with Cloudflare. Always pair it with CF-Cache-Status.

Compare Repeated Requests for Static and Dynamic Content

The exercise below is the smallest setup that separates the four outcomes on one zone. One command drives it: it prints only the headers that decide the outcome, and you repeat it for each path after ten seconds. This is design-only — not executed by the author — and no number below is a measurement.

# One request, headers to stdout. Repeat ten seconds later with another path.
curl -sS -D - -o /dev/null \
  https://test.example.com/assets/app.css \
  | grep -iE '^(cf-cache-status|age|set-cookie|content-type):'
Guided exercise

Compare Repeated Requests for Static and Dynamic Content

Status: design-only; not executed. The expected observations are predictions from the documented behaviour, not measured results.

Prerequisites and plan requirements

  • Zone and plan. A Cloudflare account with one test hostname on any plan. Every step uses Free-plan features: default caching, one Cache Rule, and cache-status visibility.
  • Static path. /assets/app.css, served with public, max-age=60.
  • JSON path. /api/now.json, served as application/json with no caching headers and a timestamp in the body.
  • Private path. /account.csv, a CSV export with private, max-age=600 and a session cookie attached.
  • Tools. curl with --dump-header, plus a way to read origin access logs. No paid product is required. If you cannot expose an origin, run the same three responses from a local server behind a tunnel and treat the Cloudflare-specific steps as unverified.

Minimal setup

One proxied DNS record for the test hostname, SSL/TLS mode Full (strict), and one Cache Rule matching starts_with(http.request.uri.path, "/assets/") with Eligible for cache set to Yes and Edge TTL set to respect origin. Add no rule for the API or the CSV export, and clear the origin log before starting.

Numbered actions

  1. Request /assets/app.css twice, ten seconds apart, using the command above. Record the cache status and age from each response.
  2. Request /api/now.json twice, ten seconds apart, and record the same two headers.
  3. Request /account.csv twice, using a fresh cookie jar for each call. Record the cache status, the session cookie, and the age.
  4. Add a second Cache Rule matching /account.csv, with Eligible for cache set to Yes and Edge TTL set to ignore origin at 60 seconds. Deploy, then request /account.csv twice and record both statuses plus whether the cookie survives.
  5. Delete the second rule, purge that URL, then request /account.csv once more and record the status.
  6. Purge the /assets/ prefix and confirm the next request misses.

Expected observations

  1. First response MISS with no age; second HIT with an age close to 10.
  2. Both DYNAMIC; the JSON timestamp changes each time; two origin log lines.
  3. Both BYPASS; the session cookie is present both times; two origin log lines. The extension made the request eligible; private made the response unstorable.
  4. MISS on the first request, HIT on the second, and no session cookie on the cached response. The Edge TTL override removed the protection that produced BYPASS in step 3 — on a controlled test origin, two cookie jars now receive the same body.
  5. BYPASS again, because the override is gone.
  6. MISS on the first post-purge request.

Failure checks

  • If step 1's second response is MISS, confirm the path matches the extension list or the rule, and that Development Mode is off — it suspends caching for three hours.
  • If step 2 returns anything other than DYNAMIC, a rule is matching more broadly than intended; check rule order and expression.
  • If step 3 returns DYNAMIC instead of BYPASS, the CSV extension is missing from your zone's list or a bypass rule is matching; check the dashboard rule list.
  • If step 4 returns BYPASS, the Edge TTL override did not apply: confirm the mode is ignore origin with a positive TTL, because a session cookie is only stripped when an explicit edge TTL is in force.
  • If Age appears on a DYNAMIC response, check whether the origin emits its own age header.

Approximate cost dimensions

Request volume is trivial: under twenty requests, no paid add-ons, no Cache Reserve, no Tiered Cache. The only cost is the test hostname and your time; the Free plan covers every step. A tunnel or small VM, if you add one, is the dominant cost.

Cleanup

Delete both Cache Rules, purge the test hostname's cache, and remove the DNS record or the tunnel. If you changed app.css, restore it so the test origin does not drift from its repository.

Explain Cache Status and Origin Request Counts

The claim here is narrow enough to test: the cache status names the layer that decided, and the origin request count should follow from the same evidence. Judge pass or fail against that, not against a hit ratio.

Pass. For each path, you can state in one sentence why the status is what it is, and predict the next request's status before sending it. The origin log lines for a ten-request burst on /assets/app.css equal the number of distinct cache locations that missed — and you can explain why that is not one.

Pass, second test. The BYPASS in step 3 traces to private; the HIT in step 4 traces to the Edge TTL override you added. Same URL, same origin response, different decision.

Fail. You find yourself purging to explain a status, or two identical requests ten seconds apart differ with no expiry in between. That usually means a rule matching inconsistently, or a Worker in the path with NONE/UNKNOWN misread as a miss.

Self-check.

1. A Free-plan zone sends Cache-Control: public, max-age=0 on a CSS file. Is it cached? Yes, and that is the surprising part. Free, Pro, and Business have Origin Cache Control enabled by default, where max-age=0 means cache and always revalidate rather than do not cache. The first request is a MISS; later ones are REVALIDATED or EXPIRED, never a BYPASS. On Enterprise with Origin Cache Control disabled, the same header means do not store, so every request goes to the origin.

2. You see a HIT with Age: 0. Contradiction? No. Age resets on revalidation and on purge, so a hit immediately after a fill or a successful revalidation legitimately reports zero or one. With Tiered Cache, a local hit can also carry an older inherited age — the opposite surprise.

3. Two visitors load the same URL within a minute and see different prices. The edge reports HIT for both. How? Most likely each browser served its own stored copy under a max-age that had not expired, so neither request reached the edge. Next most likely: one request hit a location whose copy had expired and was revalidated while another location still held a fresh copy. Neither is a cache bug; both follow from freshness being measured per copy rather than globally.

What was not measured. No Cloudflare zone was configured and no request was measured, so every expected observation above is a prediction from documentation. Default TTLs, directive handling, and status semantics were checked against Cloudflare's documentation on 2026-11-04; the underlying pages carried "last updated" dates between June and October 2026.

What is moving. The cache subsystem is changing: Cloudflare's changelog documents a new architecture rolling out during 2026, including Vary: * bypassing cache and Set-Cookie being stripped on cache misses and expired responses, not only on hits.

What was not verified. Per-plan TTL configuration beyond the documented table was not checked, and pricing is deliberately not quoted because Cache Reserve and Tiered Cache are plan- and usage-dependent. Browser behaviour around age and no-store varies even where RFC 9111 is unambiguous, so treat client-side claims as testable rather than guaranteed.

References.

  • Cloudflare Cache — https://developers.cloudflare.com/cache/
  • Default cache behavior (extensions, status-code TTLs, size limits, request collapsing) — https://developers.cloudflare.com/cache/concepts/default-cache-behavior/
  • Cache responses and CF-Cache-Status values — https://developers.cloudflare.com/cache/concepts/cache-responses/
  • Origin Cache Control and directive-by-directive behaviour — https://developers.cloudflare.com/cache/concepts/cache-control/
  • Revalidation and asynchronous stale-while-revalidate — https://developers.cloudflare.com/cache/concepts/revalidation/
  • Set-Cookie and HEAD interaction with cache — https://developers.cloudflare.com/cache/concepts/cache-behavior/
  • Cache keys and default key composition — https://developers.cloudflare.com/cache/how-to/cache-keys/
  • ETag handling and Respect Strong ETags — https://developers.cloudflare.com/cache/reference/etag-headers/
  • Vary and cache-key variation — https://developers.cloudflare.com/cache/concepts/vary/
  • Tiered Cache — https://developers.cloudflare.com/cache/how-to/tiered-cache/
  • RFC 9111, HTTP Caching — https://www.rfc-editor.org/rfc/rfc9111.html
  • RFC 9110, HTTP Semantics (validators, Vary) — https://www.rfc-editor.org/rfc/rfc9110.html
  • Cache Deception Armor and the web cache deception attack pattern — https://developers.cloudflare.com/cache/cache-security/cache-deception-armor/

Next in the Series

In Design Cache Rules Without Leaking Personalized Content, we'll explore Make cache keys and bypass policy match application behavior.