For the same public PDF, an origin log can show a full transfer on the first visit, no entry on the second and a 304 response on the third. The sequence below shows how a cache miss, a fresh hit and conditional revalidation produce those three outcomes.

The first fetch establishes a cache entry

Suppose a public handbook is served at /handbook.pdf. The edge looks up the request’s cache key. On a miss it fetches the file. Its cache policy and the response headers decide whether it can store the response and how long it remains fresh. A successful origin response alone does not establish that storage occurred.

Freshness expires before the file disappears

A stored response may remain usable after its freshness lifetime if the edge first validates it. With an ETag, the edge can send a conditional request. An unchanged document can yield a 304 and reuse the stored body. A changed document generally returns a new body and validator.

Three visits to one edge

  1. 1First readerThe edge retrieves the document and stores the response.
  2. 2Second readerWhile the entry is fresh, the edge returns its stored copy.
  3. 3Later readerAfter expiry the edge validates the entry or fetches the file again.
This sequence assumes a public, cacheable PDF with an ETag and no intervening eviction.

Explain what the origin observed

Look for the same URL and variant in edge logs, then line up timestamps with origin requests. A reader in another region may encounter a separate cold cache. A browser may also satisfy a visit without sending any request to the CDN. Both details matter when comparing visitor counts with origin logs.

Sources & further reading

Reader questions

Will changing my file immediately refresh the edge?

It can continue serving a fresh copy until expiry or invalidation. A versioned URL gives the new file a separate cache identity.