FUNDAMENTALS & NETWORKING · SUBTOPIC
Push vs. Pull CDNs & Origin Shield
Fetch on demand (Pull), pre-warm ahead of spikes (Push), and protect origin with an Origin Shield.
BeginnerPart of CDN & Edge Computing
Subtopics in CDN & Edge Computing (2)
In plain words
A Pull CDN grabs an item from the warehouse only after the first customer asks for it. A Push CDN stocks the local shop shelves before the store even opens.
Think of it like…
Local bookstore ordering a book when first requested (Pull) vs. stocking 1,000 copies on release eve (Push).
Loading interactive diagram
Loading interactive exercise
Theory & how it works
Why Origin Shield matters
If 200 edge PoPs all miss on a brand-new viral image at the same second, all 200 might slam your origin at once. An Origin Shield is a mid-tier cache sitting right in front of your origin that collapses those 200 requests into a single origin fetch.
Key points & practical guide
Summary checklist
- Use Pull CDN as the default
- Add an Origin Shield to prevent global thundering herds
- Version filenames (
/bundle.v42.js) instead of running constant cache purges
When to use it
- Any public static media, JS/CSS, video segments, or cacheable GET APIs
Watch out for
- Caching personalized or authenticated responses at a shared public edge without proper
Vary/privateheaders
Quick check
Loading quiz