Free auditStart free
GlossaryGlossary · Performance

Edge caching

Edge caching stores responses on servers near visitors so repeat requests skip your origin. See what gets cached by default, how TTLs work, and how to check.

4 min
read
5
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
In one line

Edge caching means storing copies of responses on servers close to visitors, usually in a CDN, so repeat requests are answered without going back to your origin server. MDN calls these managed caches, deployed by service developers to offload the origin and deliver content efficiently. Whether a response is cached depends on its headers and the CDN's rules.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What the edge cache is

An edge cache is a shared cache that sits between visitors and your origin server. MDN describes managed caches as ones explicitly deployed by service developers to offload the origin server and to deliver content efficiently. Reverse proxies and CDNs are examples.

Because a managed cache is run by you, not by an ISP or a browser, you can control it with the Cache-Control header plus the CDN's own dashboard or rules. MDN notes that the HTTP caching specification doesn't define a way to explicitly delete a cache, but a managed cache can delete a stored response at any time through dashboard operations or API calls. That is what makes purging possible.

03Explained

TTLs: edge versus browser

Two clocks run on a cached file. Cloudflare defines Edge Cache TTL as the maximum time to cache a resource in its network, and Browser Cache TTL as the expiration for resources cached in a visitor's browser.
SettingFreeProBusinessEnterprise
Minimum Edge Cache TTL2 hours1 hour1 second1 second
Default Browser Cache TTL4 hours4 hours4 hours4 hours

At the HTTP level, s-maxage targets shared caches only. RFC 9111 says that for a shared cache, its maximum age overrides the one specified by max-age or the Expires header. So Cache-Control: max-age=60, s-maxage=3600 lets browsers reuse a response for a minute and a CDN for an hour. Cloudflare's docs add that purging its cache does not affect assets stored by a visitor's browser.

05Worth knowing

Common mistakes

Assuming HTML is cached

On Cloudflare it isn't, unless a rule says so. A fast static asset score says nothing about your document's time to first byte.

Cookies on cacheable files

A stray Set-Cookie on a stylesheet or image is one of the reasons Cloudflare doesn't cache it.

Long TTLs without versioned URLs

Cloudflare warns that if you modify cached assets, repeat visitors may not see them before the Browser Cache TTL expires. Put a hash in the filename and set long lifetimes on that.

Purging and expecting browsers to follow

A purge clears the edge only.

For header syntax, see Cache-Control.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • mozilla.org
  • cloudflare.com
  • rfc-editor.org
  1. 01Caching - HTTP (MDN Web Docs)developer.mozilla.org · checked 2026-10-25
  2. 02Default cache behavior (Cloudflare Cache docs)developers.cloudflare.com · checked 2026-10-25
  3. 03Edge and Browser Cache TTL (Cloudflare Cache docs)developers.cloudflare.com · checked 2026-10-25
  4. 04Cloudflare cache responses (Cloudflare Cache docs)developers.cloudflare.com · checked 2026-10-25
  5. 05RFC 9111: HTTP Cachingrfc-editor.org · checked 2026-10-25
Questions

Asked a lot.

5 questions people ask next, answered from the sources on this page.

01What is edge caching?

It is storing copies of responses on servers near visitors, usually in a CDN, so repeat requests don't have to reach your origin. MDN calls this a managed cache.

02What is the difference between edge cache and browser cache?

The edge cache is shared by many visitors and managed by you through your CDN. The browser cache is private to one visitor. Cloudflare sets their lifetimes separately, as Edge Cache TTL and Browser Cache TTL.

03Does a CDN cache HTML?

Not by default on Cloudflare, which caches by file extension and does not cache HTML or JSON unless a Cache Rule says so. Other CDNs have their own defaults.

04How do I know if a response came from the edge cache?

Check the response headers. On Cloudflare, CF-Cache-Status: HIT means it was found in the cache, and an Age header is set when it is served from cache.

05Does clearing the CDN cache clear visitors' browsers?

No. Cloudflare states that purging its cache does not affect assets stored by a visitor's browser.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly