A media site with a 12 TB photo catalog flips on Cloudflare and watches the cache hit ratio settle at 72%. The origin is still serving over a quarter of all requests — far more than the team expected. Investigation shows that with traffic spread across 300+ POPs, each POP independently misses on cold-tail objects, and an object’s first request from each POP becomes an origin fetch. Cloudflare offers two layers above the per-POP cache that change this picture: Tiered Cache funnels misses through a smaller upper tier, and Cache Reserve adds a persistent R2-backed store for objects that the regular cache evicts too soon. This article walks the topology of each, when the math favours them, and the operating implications.
How to verify
Check whether Tiered Cache is on, and look at the cache analytics that justify (or refute) turning the next layer on:
# Read Tiered Cache settings via API
curl -sX GET \
-H "Authorization: Bearer $CF_API_TOKEN" \
"https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/tiered_cache_smart_topology_enable" \
| jq .
# Cache Reserve enablement check
curl -sX GET \
-H "Authorization: Bearer $CF_API_TOKEN" \
"https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/cache_reserve" \
| jq .
# Pull the hourly hit ratio for the last 24h (zone-level)
# Use the Cache Analytics dashboard at /caching/cache-analytics for a UI view
curl -sI https://www.example.com/large-asset.jpg | grep -i cf-cache-status
The dashboard at Caching → Cache Analytics breaks hit ratio by status code, content type, and host. The single most diagnostic number is the bytes served from cache vs. bytes served from origin ratio over a week — that is what Tiered Cache and Cache Reserve actually move.
What’s happening
Without Tiered Cache, every Cloudflare POP holds its own independent cache. A request lands at the nearest POP. If the object is present, HIT. If not, the POP fetches from the origin directly. With 300+ POPs in the network, the first request from each POP is an origin fetch — for a long-tail catalog where many objects are seen rarely, the per-POP cache fills slowly and the origin keeps getting hit.
Tiered Cache changes the topology. POPs are organised into tiers. Lower-tier POPs (the ones users hit directly) become lower tier. A smaller set of larger data centres become upper tier. When a lower-tier POP misses, it asks the upper tier for the object before going to origin. The upper tier holds a much larger working set because it sees consolidated traffic. The first request to a cold object causes one origin fetch through the upper tier; every other POP that wants the same object asks the upper tier and gets a HIT without bothering the origin. The net effect is a shape change: from 300 independent caches to a smaller set of caches that fan out.
Cloudflare ships two Tiered Cache topologies. Smart Tiered Cache Topology (the recommended default on most plans) uses Cloudflare’s traffic data to dynamically pick a single best upper-tier data centre per zone, per object class. Generic Global Tiered Cache uses a fixed regional fan-out. Smart is the standard choice unless you have a specific reason — Customer Tiered Cache and Regional Tiered Cache exist for enterprise customers with bespoke topologies, but those are conversations to have with a Cloudflare account team, not defaults to flip in the dashboard.
Cache Reserve is a different lever. The regular edge cache evicts objects under memory pressure — cold-tail content that has not been requested in some time falls out of cache and the next request fetches from origin again. Cache Reserve adds a persistent backing store: a layer that sits between the upper-tier Tiered Cache and the origin, backed by R2 storage, that holds cached objects for much longer (months by default) and is not subject to eviction in the same way. When a cacheable object is fetched, a copy is written to Cache Reserve; when the regular cache evicts it, the next miss is served from Cache Reserve rather than origin. Cache Reserve is billed by the GB-month stored plus operations — the trade-off is straightforward: pay storage to avoid origin egress and origin compute.
The procedure
-
Establish a baseline. Before flipping anything, capture the current cache hit ratio (bytes), the origin’s egress bill or transfer numbers, and the top URLs by origin fetches. The dashboard at Caching → Cache Analytics shows this. Note the working numbers — without them, attribution after the change is guesswork.
-
Enable Smart Tiered Cache Topology first. This is the lowest-friction lever and the right default. From the dashboard at Caching → Tiers, pick Smart Tiered Cache Topology. Via API:
curl -sX PATCH \ -H "Authorization: Bearer $CF_API_TOKEN" \ -H "Content-Type: application/json" \ "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/tiered_cache_smart_topology_enable" \ --data '{"value":"on"}'No client change, no origin change. Wait 24–48 hours for the cache hit ratio to settle, then compare against the baseline. Expect a meaningful jump in cache hit ratio for catalogs with long-tail access (media, e-commerce product images, document repositories). Smaller jumps for sites with concentrated traffic on a few hot URLs — those URLs were already cached at every POP.
-
Decide whether Cache Reserve pays. Cache Reserve makes economic sense when:
- The catalog is large (tens or hundreds of GB and up).
- Access patterns are long-tailed — many objects requested infrequently but persistently.
- The origin’s transfer-out cost is non-trivial (S3 egress, dedicated bandwidth on the origin host).
It is less obviously economic when:
- The catalog is small enough that the regular cache holds the working set without eviction.
- Traffic is uniformly hot — the same 100 URLs serve 95% of requests; those stay hot in the regular cache.
- The origin is already optimised for cheap egress (e.g. another R2 bucket, where egress is already not billed).
The arithmetic to do: estimate the GB-month you would store in Cache Reserve, multiply by Cache Reserve’s storage rate, add the operations charges, then compare to the egress and compute you currently spend serving cold-tail misses from origin. If the numbers favour Cache Reserve by a comfortable margin and the catalog is large enough to justify the operational layer, turn it on.
-
Enable Cache Reserve. From the dashboard at Caching → Cache Reserve, click enable. Via API:
curl -sX PATCH \ -H "Authorization: Bearer $CF_API_TOKEN" \ -H "Content-Type: application/json" \ "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/cache_reserve" \ --data '{"value":"on"}'Cache Reserve fills opportunistically — only cacheable objects with eligible content types and a defined TTL above a threshold get written. The first time it warms, you will see normal traffic for a few weeks while Cache Reserve absorbs the catalog. Watch the Cache Reserve Storage Used number stabilise; that is the steady-state cost.
-
Re-baseline. A month after each change, pull the same numbers as the baseline — hit ratio, bytes served from origin, top URLs by origin fetch. Confirm the change moved what you expected, and adjust if it did not.
-
Coordinate with purges. A Purge Everything on the zone also clears Cache Reserve. If you have built a CDN strategy that relies on Cache Reserve being warm, run Purge Everything sparingly — purge by URL, tag, or prefix instead. See the purge strategies workflow for the full discipline.
Common pitfalls
- Tiered Cache only helps for objects that are actually cacheable — turning it on does not change anything for content that the edge already labels
DYNAMICorBYPASS. - Cache Reserve stores objects subject to the same cache key as the regular cache; if your cache key includes per-user dimensions (cookies, session headers) the reserve fragments along the same axis and the math collapses.
- A Purge Everything also purges Cache Reserve, so the cold-start tax after a global purge is even larger with Cache Reserve enabled — bake the pre-warm step into your runbook.
- Cache Reserve only accepts objects above a minimum eligible TTL — verify the current TTL minimum on the Cloudflare docs before counting on Reserve absorbing short-TTL content.
- Cache Reserve is a zone setting, not a per-rule setting — you cannot opt some paths in and others out except by setting those paths’ Edge TTL below the eligibility threshold or marking them non-cacheable.
In the engagements we run, Tiered Cache goes on by default for any zone serving meaningful long-tail traffic and Cache Reserve gets a numbers conversation with the customer before flipping. Stack Harbor operates the cache topology — and the analytics that prove it is paying — as part of Managed Operations.