Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Tiered Cache Hierarchy, Smart Topology and Cache Reserve

How CDN tiered caching routes misses through upper tiers, chooses topology, and uses Cache Reserve to cut origin load and egress.

This page summarises Cloudflare documentation on Tiered Cache, Smart Tiered Cache, related topologies, Cache Reserve, and the Smart Shield origin-protection bundle. Together they explain how to raise cache hit ratios, limit how many edge locations talk to your origin, and when to add regional or persistent cache layers.

Tiered Cache: why miss traffic does not hit the origin from every edge

Section titled “Tiered Cache: why miss traffic does not hit the origin from every edge”

Tiered Cache uses the scale of the CDN network to reduce requests to customer origins by dramatically increasing cache hit ratios.

Tiered Cache works by dividing Cloudflare’s data centers into a hierarchy of lower-tiers and upper-tiers. If content is not cached in lower-tier data centers (generally the ones closest to a visitor), the lower-tier must ask an upper-tier to see if it has the content. If the upper-tier does not have the content, only the upper-tier can ask the origin for content.

— Cloudflare, Tiered Cache

Without tiering, each data center can act as a direct reverse proxy: a cache miss in any location may send a request to the origin from that ingress colo. With Tiered Cache, only upper-tier data centers contact the origin for uncached content, which improves bandwidth efficiency and concentrates origin connections into a small number of locations.

Standard caching vs Tiered Cache request path

Section titled “Standard caching vs Tiered Cache request path”

On a cache miss at a lower tier (edge colo near the visitor), the lower tier asks an upper tier for the object. If the upper tier also misses, it fetches from the origin, caches the response, and returns it down the hierarchy. A later miss at a different lower tier can be satisfied from the upper tier without another origin round trip, as described in the CDN reference architecture traffic-flow section.

Tiered Cache applies only to requests eligible for cache at request time. Origin-response cacheability is evaluated later, so an eligible request can still be routed through an upper tier before the response is treated as uncacheable. For bypass and uncached cases, see Investigate uncached responses.

Tiered Cache topology: Smart, Generic Global, Custom and Regional

Section titled “Tiered Cache topology: Smart, Generic Global, Custom and Regional”

Cloudflare lets you choose how upper tiers connect to your origin. The CDN reference architecture compares the main options:

Topology Typical use Origin contact pattern Plan notes (per docs)
Smart Tiered Cache Most deployments; default when Tiered Cache is enabled Single best upper tier per origin (latency-driven) Included with every plan; part of Smart Shield
Generic Global Tiered Cache Global traffic, highest shared-cache efficiency trade-offs Regional upper-tier pools; consistent hash on cache key Enterprise for this topology in the reference table
Custom Tiered Cache Specific geography or traffic patterns Account-team-defined topology Enterprise
Regional Tiered Cache (middle tier) Global footprint; reduce lower→upper distance Regional hub before upper tier Enterprise; Smart Shield Advanced

Smart Tiered Cache favours cache hit percentage by funnelling misses through one upper tier near the origin, which can add latency when the upper tier is far from the requesting lower tier. Generic Global Tiered Cache keeps upper tiers closer to lower tiers more often, which can improve fill latency but may increase origin requests because more upper tiers may populate from the origin. Regional Tiered Cache adds a hub between lower and upper tiers so misses check a nearby regional layer first; it pairs with Smart or Custom topologies and is less useful when many regional upper tiers already exist (as with Generic Global). Details appear under Regional Tiered Cache and Tiered Cache.

Smart Tiered Cache: automatic upper tier selection

Section titled “Smart Tiered Cache: automatic upper tier selection”

Smart Tiered Cache dynamically selects the single closest upper tier for each origin using in-house performance and routing data, with no configuration required in the common case.

Smart Tiered Cache dynamically selects the single closest upper tier for each of your website’s origins with no configuration required, using our in-house performance and routing data.

— Cloudflare, Smart Tiered Cache

Smart Shield bundles Smart Tiered Cache with connection reuse (multiple origin requests over shared connections from the upper tier) and optional add-ons such as Argo Smart Routing, Regional Tiered Cache, Cache Reserve, and health checks, per the network diagram overview.

Public cloud origins and cloud region hints

Section titled “Public cloud origins and cloud region hints”

Origins on AWS, GCP, Azure, or Oracle Cloud often sit behind anycast or regional unicast, so latency probing alone may not reveal location. For those origins, set a cloud region hint (for example aws/us-east-1 or gcp/europe-west1).

By setting a cloud region hint for your origin, Cloudflare selects the optimal upper-tier data center for that cloud region, funneling all cache MISSes through a single location close to your origin.

— Cloudflare, Smart Tiered Cache optimizes public cloud origins

Configure hints under Caching > Tiered Cache > Origin Configuration in the dashboard, or via the origin cloud regions API (PATCH .../cache/origin_cloud_regions). Hints are available on Free, Pro, Business, and Enterprise at no additional cost. Custom Tiered Cache settings take precedence over cloud region hint mappings.

With Load Balancing, Smart Tiered Cache selects one optimal upper tier for the entire pool, so all origins in the pool share that upper-tier cache (Load Balancing Pools changelog).

For R2 as an origin (including public buckets on a custom domain), enabling Smart Tiered Cache selects an upper tier close to the bucket region, routing edge misses through that tier before R2 (R2 interaction, public buckets caching).

When Smart Tiered Cache cannot determine origin location (for example anycast-masked origins without a hint), it falls back to Generic Tiered Cache automatically: multiple upper tiers, distributed fills, no customer action required (Smart Tiered Cache Fallback to Generic).

Updating origin IPs or DNS while Smart Tiered Cache is enabled can reassign upper tiers and temporarily raise MISS rates while new upper tiers warm. Moving to an anycast origin without a cloud region hint sharply reduces Smart Tiered Cache effectiveness (caveats).

Generic Global Tiered Cache and regional content hashing

Section titled “Generic Global Tiered Cache and regional content hashing”

Generic Global Tiered Cache groups data centers into regional upper-tier pools and uses a consistent hash of the cache key to pick an upper tier within the pool, so the same key in a region tends to hit the same upper tier (Tiered Cache — Generic Global).

Regional content hashing (changelog: Regionalized Generic Tiered Cache) aims to stop the same popular object from being cached redundantly at several upper tiers in one region—documentation cites roughly 3–4× fewer cache MISSes in an example image scenario. Unlike Smart Tiered Cache, Generic Global does not use per-origin latency to pick upper tiers; it emphasises regional locality and shared-cache efficiency.

Cache Reserve: persistent upper-tier storage on R2

Section titled “Cache Reserve: persistent upper-tier storage on R2”

Cache Reserve is a large, persistent data store on R2. One dashboard action writes cacheable content into reserve storage so assets can stay available longer and shield the origin from repeat egress.

In the same way that Tiered Cache builds a hierarchy of caches between your visitors and your origin, Cache Reserve serves as the ultimate upper-tier cache, that will reserve storage space for your assets for as long as you want.

— Cloudflare, Cache Reserve

Freshness follows Edge Cache TTL or origin Cache-Control when Edge Cache TTL is unset; after expiry, the next request triggers origin revalidation like the regular CDN. Retention defaults to 30 days of no requests before removal; a new request resets retention. Cache Reserve is usage-based, requires a paid plan, and is designed to run with Tiered Cache enabled—the dashboard warns if you enable Reserve without Tiered Cache (tips). Under Smart Shield Advanced, documentation notes 2 TB of Cache Reserve storage (Smart Shield Cache Reserve configuration).

Enable Tiered Cache: dashboard, API and typical performance stack

Section titled “Enable Tiered Cache: dashboard, API and typical performance stack”

Tiered Cache ships on all Cloudflare plans but is off by default until you enable it (CDN reference architecture).

  1. In the dashboard, open Tiered Cache and toggle Tiered Cache on.
  2. Under Tiered Cache Topology, choose Smart or Generic Global for the upper tier (Custom requires Enterprise engagement).
  3. If you use Smart or Custom topology and have Enterprise / Smart Shield Advanced, optionally enable Regional Tiered Cache as a middle tier.
  4. For AWS, GCP, Azure, or Oracle origins, set a cloud region hint on each origin IP or hostname.
  5. For maximum origin shielding with long-tail assets, enable Tiered Cache first, then Cache Reserve (cache content globally use case).

API examples to turn on tiered caching and Smart topology appear in Tiered Cache — Enable via API (PATCH .../argo/tiered_caching, .../cache/tiered_cache_smart_topology_enable, .../cache/regional_tiered_cache).

Argo Smart Routing optimises paths between colos and the origin while Tiered Cache limits how many colos reach the origin; the CDN reference notes Argo data also informs upper-tier selection.

After Smart Shield setup, get started points to the Observatory dashboard for origin performance and cache effectiveness.

Troubleshooting: slow misses and Tiered Cache fills

Section titled “Troubleshooting: slow misses and Tiered Cache fills”

Intermittent slowness on the same URL often correlates with MISS or EXPIRED at the edge versus fast HIT responses. Investigate latency on tiered requests recommends Log Explorer on the HTTP Requests dataset:

Field Meaning
CacheTieredFill true when the lower tier fetched from an upper tier
EdgeColoCode Lower-tier colo (IATA code)
UpperTierColoID Upper tier used for the fill
CacheCacheStatus HIT, MISS, EXPIRED, etc.
OriginResponseDurationMs Total upstream time from lower tier’s perspective (not one isolated hop)

Group slow URLs by CacheTieredFill and compare OriginResponseDurationMs. Turning Tiered Cache off sends every edge miss to the origin and does not fix a bad upper-tier→origin path; consider a cloud region hint, Smart Tiered Cache reassignment, or Custom Tiered Cache with your account team.

  • Enabling Cache Reserve without Tiered Cache, which documentation warns can raise storage operation costs.
  • Changing origin addressing without updating cloud region hints, hurting upper-tier placement on public cloud anycast fronts.
  • Expecting Regional Tiered Cache to help when Generic Global already spreads many upper tiers across regions.
  • Disabling Tiered Cache to “fix” latency instead of adjusting topology or hints, losing fill efficiency for all traffic.
  • Assuming every response cached at the edge: request-time eligibility can still route through tiers before the origin declares content uncacheable.
  1. Confirm Tiered Cache and your chosen topology (Smart, Generic Global, or Custom) are enabled under Tiered Cache in the dashboard.
  2. For cloud-hosted origins, verify each origin has the correct cloud region hint under Caching > Tiered Cache > Origin Configuration.
  3. Sample requests for a cacheable URL and inspect response headers for cache status (for example cf-cache-status); compare HIT vs MISS from different regions.
  4. In Log Explorer, filter your URL and compare CacheTieredFill and OriginResponseDurationMs using the method in Investigate latency on tiered requests.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.