Origin Shield

Give edge caches a shared upstream cache. When several locations request the same file, Origin Shield can consolidate eligible misses into one origin fetch.

Three edges request the same uncached file
Compare origin request paths

1 origin fetchConcurrent misses for the same cache key share an upstream fetch.

Where a request is served

Edge hit

The edge has a fresh copy. It sends the file directly to the client.

Shield hit

The edge misses. The shield supplies its cached copy and the edge can store it locally.

Shield miss

The shield fetches from your origin. Eligible concurrent misses for the same key can share that fetch.

Configure Origin Shield

Cloud CDN overview
  1. Connect the origin

    Configure the origin hostname and TLS settings on your Cloud CDN distribution.

  2. Enable Origin Shield

    Route eligible edge cache misses through the shared cache.

  3. Set your origin policy

    If you use multiple origins, configure the group and its failover or path rules.

  4. Verify with a cacheable file

    Compare edge misses with origin access logs after an expiry or purge.

What to measure

  • Origin fetches for an object after expiry
  • Origin bandwidth during a release
  • Response time on edge and shield hits

Frequently asked questions

Where do I enable Origin Shield?

Configure it on a Cloud CDN distribution alongside the origin and TLS settings.

Which workloads benefit most?

Look for the same cache keys being requested from multiple locations. Media segments, release binaries and public pages after a deployment are typical examples.

Does shielding affect latency?

An edge hit takes the usual local path. On an edge miss, the extra hop can be offset by a shield hit that avoids the origin round trip.

Can I use more than one origin?

Yes. Origin groups bind multiple origins to a distribution.