Origin Shield

Architecture

A mid-tier cache layer that sits between edge servers and the origin. Aggregates cache misses from multiple edges, reducing origin load. Also called "mid-tier cache" or "parent cache."

Updated Apr 3, 2026

Full Explanation

An origin shield is a designated mid-tier cache that sits between your edge servers and your origin. Think of it as a funnel. Without a shield, every edge PoP that gets a cache miss sends its own request back to your origin. If you have 200 PoPs and a popular asset expires, that is up to 200 separate requests hitting your origin for the exact same file. With a shield in place, all those edge misses get routed to the shield first, which either serves from its own cache or makes a single request to origin on behalf of everyone.

The math is simple and the impact is dramatic. Say you have 100 edge PoPs and a popular image expires. Without shield: up to 100 origin fetches. With shield: 1 origin fetch. The shield caches the response and all edges fill from it. This is especially important during cache warming events, traffic spikes, or if your origin is on modest infrastructure that cannot absorb burst traffic.

Where you place the shield matters. The most common strategy is to place it near your origin, which minimizes the fill latency from shield to origin. If your origin is in us-east-1, pick a shield PoP in Virginia or a nearby location. Some CDNs let you pick a shield location explicitly (Fastly, CloudFront), while others handle it automatically. A few architectures even support multiple shield tiers for global deployments.

Without origin shield:
  Edge-AMS ──miss──> Origin
  Edge-FRA ──miss──> Origin    (3 origin hits for same content)
  Edge-NRT ──miss──> Origin

With origin shield (IAD):
  Edge-AMS ──miss──> Shield-IAD ──miss──> Origin  (1 origin hit)
  Edge-FRA ──miss──> Shield-IAD ──HIT──>          (served from shield)
  Edge-NRT ──miss──> Shield-IAD ──HIT──>          (served from shield)

Most CDN dashboards show shield hit ratio as a separate metric from edge hit ratio. If your shield hit ratio is low, you probably have caching issues like Vary headers splitting your cache keys or TTLs that are too short. If it is high, your origin is well protected.

Interactive Animation

Loading animation...

Examples

CloudFront origin shield configuration example:

{
  "Origins": {
    "Items": [{
      "DomainName": "origin.example.com",
      "OriginShield": {
        "Enabled": true,
        "OriginShieldRegion": "us-east-1"
      }
    }]
  }
}

Fastly shielding is configured per backend by selecting a shield PoP:

Backend: origin.example.com
Shield: iad-va-us (Ashburn, VA)

Video Explanation

Frequently Asked Questions

A mid-tier cache layer that sits between edge servers and the origin. Aggregates cache misses from multiple edges, reducing origin load. Also called "mid-tier cache" or "parent cache."

CloudFront origin shield configuration example:

{
  "Origins": {
    "Items": [{
      "DomainName": "origin.example.com",
      "OriginShield": {
        "Enabled": true,
        "OriginShieldRegion": "us-east-1"
      }
    }]
  }
}

Fastly shielding is configured per backend by selecting a shield PoP:

Backend: origin.example.com
Shield: iad-va-us (Ashburn, VA)