Distinguishing browser cache lifetime from edge cache lifetime

Browser cache lifetime and Cloudflare edge lifetime control different copies of a resource. Choose them separately so frequently changed content remains updateable while versioned static assets can be reused efficiently.

Information to have ready

Identify how the application publishes changed assets and inspect existing Cache-Control headers. Distinguish a versioned filename from a URL whose contents are overwritten in place.

01 Review browser and edge cache settings

  1. Review the domain’s browser-cache setting and any matching Cache Rules. Decide whether the origin should define browser lifetime.
  2. Use a scoped rule when one asset group needs a different policy, leaving private responses protected.
  3. Set a deliberate browser lifetime and a separate edge lifetime where needed. Avoid a long browser lifetime for a frequently overwritten URL.
  4. Request the asset and inspect the headers delivered to the browser, then compare Cloudflare’s cache behaviour separately.
  5. Deploy an updated version using a new filename or controlled URL version and confirm pages reference it. Purge the old edge copy only when appropriate.

Confirm the expected result

The delivered headers should match the intended browser policy, and the edge should retain or revalidate the object according to its own rules. Check real update behaviour as well as performance.

Troubleshoot unexpected results

Purging Cloudflare cannot remotely erase an already fresh browser cache entry. A browser may keep a previously served lifetime even after you shorten the server’s setting, so plan versioned assets before committing to long-lived caching.

Can the edge cache briefly while browsers recheck often?

Yes. Separate origin or Cloudflare controls can define different lifetimes. Verify the resulting headers and keep authentication-sensitive content out of shared caching.

  • 0 Users Found This Useful
  • performance
Was this answer helpful?

Related Articles

Using Cloudflare Always Online for limited outage fallback

Always Online can provide limited cached or archived public content when the origin is...

Bypassing cache for private account and checkout pages

Private account, cart and checkout responses must not be shared between visitors. Use explicit...

Checking why cookies prevent or alter Cloudflare caching

Cookies influence application state, but the presence of a request cookie does not universally...

Controlling query-string caching without mixing different content

A cache key decides which requests share one cached response. Query parameters can identify...

Creating a cache rule for public static assets

A cache rule can make a known public asset path eligible for edge caching. Scope the rule to...