What is a CDN? Edges, origins, and caching
You might replace an image and still see the old one, or notice that the same page responds at different speeds. A CDN places delivery locations between the original server and the user. Those locations can sometimes serve a stored response.
The browser, edge, and origin
A content delivery network (CDN) delivers content from multiple locations. The edge receives requests from users. The origin is the source of the images or pages. When the browser makes a request through the CDN, the edge checks whether a stored response can be used. It can serve that response directly, or go to an upstream cache or the origin to fetch or revalidate it. CloudFront delivery example
With a DNS CNAME pointing to the CDN, readers can keep using the same URL. See an example of how a CNAME differs from an HTTP redirect.
Browser-to-edge and CDN-to-origin connections
When your browser shows h3, the CDN can still use a different HTTP version to fetch an image. The edge receives the browser request and uses a separate connection to contact the origin when needed. For example, a browser can connect to Cloudflare over HTTP/3 while Cloudflare uses HTTP/1.1 to fetch from an origin that supports only HTTP/1.1. See HTTP/3 on Cloudflare and HTTP compatibility on the origin side.
Check the HTTP version on each connection
| Connection | Example version | Where to check |
|---|---|---|
| Browser to CDN | HTTP/3 | Protocol column in the browser Network panel |
| CDN to origin | HTTP/1.1 | Origin server logs when a request reaches it |
Check HTTPS and the origin certificate
When the browser connects to the CDN over HTTPS, check the CDN settings for encryption and certificate validation on the origin connection. For example, Cloudflare Full (strict) connects to the origin over HTTPS and checks the certificate validity period, issuer, and name. See Cloudflare Full (strict), how to read certificate names, and how to check HTTP/1.1, HTTP/2, and HTTP/3.
Distinguish a cache hit from a miss
A hit means the cache served the request with a response it already had. A miss means it could not find a usable stored response. Hits can reduce requests to the origin for content many people ask for, such as a public image. Response headers and the CDN’s configuration determine which responses can be shared. Headers that control caching How Vary affects cache reuse
Inspect the delivery result in your browser
In your browser’s developer tools, select an image in the network panel and open its response headers. If the service sends Cache-Status, here are two ways to read it. Some services use their own header names. Check the provider’s documentation for their meanings. RFC 9211 §2
Reading Cache-Status
| Example response header | What this cache did |
|---|---|
Cache-Status: Edge; hit |
Used a stored response without forwarding the request |
Cache-Status: Edge; fwd=uri-miss |
Forwarded the request because it had no response matching the requested URL |
Why you may still see the old file
If you replace a file at the same URL, a browser or CDN can keep displaying an earlier response while it can still reuse it. A versioned filename gives a new image or CSS file a different URL. See how to read Age and remaining freshness and why a 404 can persist after recovery. CloudFront guidance on versioned filenames and invalidation