Move the answer closer
A cache can shorten the journey.
The origin server is the authoritative source for a resource. A CDN places copies of cacheable resources at edge locations, which are servers positioned near groups of users.
When a request reaches an edge location, a cache hit can return the stored response immediately. On a cache miss, the edge fetches the resource from the origin, serves it to the user, and may keep a fresh copy for later requests.
Build the model
Four CDN pieces
Origin
The authoritative server or service that owns the resource.
Edge location
A nearby delivery point that can serve cached content.
Cache policy
Rules that decide what can be stored and for how long.
Cache miss
A request that requires the edge to fetch from the origin.
Mini experiment
Follow a request
Select the state of the edge cache and see where the response comes from.
The nearby edge already has a fresh copy and returns it to the user.
The origin is not contacted for this request.
Knowledge check
Test your CDN model
Answer five questions. The answer order changes each time.