top of page
Search

How CDN Caching Works

A cache hit happens when a user requests a file (like an image, CSS, or HTML) and the CDN already has a fresh copy stored at the edge. The edge server can return it immediately without contacting your origin, which reduces latency and lowers load on your infrastructure.

A cache miss occurs when the edge server doesn’t have the content yet, or the cached copy has expired or been invalidated. In that case, the CDN fetches the asset from the origin (or an upstream cache), serves it to the user, and typically stores it so the next request is more likely to be a hit.

Edge servers are the CDN’s globally distributed points of presence located close to end users. By terminating requests near the user and caching popular content locally, edge servers improve performance, smooth traffic spikes, and help keep your site responsive even during high demand.

 
 
 

Recent Posts

See All
Cache Invalidation Explained

Cache invalidation is how you ensure users don’t keep receiving stale content after you deploy an update. Without invalidation, a CDN might continue serving an older cached copy until its TTL expires.

 
 
 
Why Cookies Break Caching

Cookies often signal that a response is personalized—think logged-in state, location, or A/B test buckets. If a CDN cached one user’s personalized page and served it to others, it would be a privacy a

 
 
 
Edge Servers Around the World

CDNs run thousands of edge servers in data centers across continents so content can be delivered from a location close to each visitor. The closer the edge is to the user, the fewer network hops and t

 
 
 

Comments


bottom of page