# 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.

Canonical: https://scaplet.com/glossary/edge-caching

Glossary Glossary · Performance

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fedge-caching%20(%22Edge%20caching%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fedge-caching%20(%22Edge%20caching%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fedge-caching%20(%22Edge%20caching%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fedge-caching%20(%22Edge%20caching%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 4 minutes.

1. [What the edge cache is 01](#what-the-edge-cache-is)
2. [What gets cached by default (Cloudflare example) 02](#what-gets-cached-by-default-cloudflare-example)
3. [TTLs: edge versus browser 03](#ttls-edge-versus-browser)
4. [Check it in 2 minutes 04](#check-it-in-2-minutes)
5. [Common mistakes 05](#common-mistakes)

_01_Explained

## 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](/glossary/cdn) 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](/glossary/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.

_02_At a glance

## What gets cached by default (Cloudflare example)

Defaults vary by provider, so read your CDN's docs. Cloudflare's are a useful example because they surprise people: it caches by file extension, not by content type, and it doesn't cache HTML or JSON by default.

Condition

### `Cache-Control` is `private` or `no-store`

What Cloudflare does

Does not cache

Condition

### `Cache-Control` is `no-cache` or `max-age=0`

What Cloudflare does

Listed as not cached. On Free, Pro and Business, where Origin [Cache Control](/glossary/cache-control) is on by default, these directives make Cloudflare cache and revalidate instead

Condition

### A `Set-Cookie` header exists

What Cloudflare does

Does not cache by default

Condition

### Request method is anything other than GET

What Cloudflare does

Does not cache

Condition

### `Cache-Control` is `public` and `max-age` is greater than 0

What Cloudflare does

Caches

Condition

### `Expires` header is set to a future date

What Cloudflare does

Caches

Condition

### HTML or JSON, with no cache rule

What Cloudflare does

Not cached by default

To cache more than the default file extensions, Cloudflare points to Cache Rules, including a rule to cache everything. If you do that for HTML, check for personalized pages first: a cached page with a logged-in user's content is worse than a slow one.

_03_Explained

## 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.

| Setting | Free | Pro | Business | Enterprise |
| Minimum Edge Cache TTL | 2 hours | 1 hour | 1 second | 1 second |
| Default Browser Cache TTL | 4 hours | 4 hours | 4 hours | 4 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.

_04_At a glance

## Check it in 2 minutes

Request the URL twice and read the cache headers. Cloudflare reports the result in `CF-Cache-Status`, and sets `Age` when it serves from cache.

CF-Cache-Status

### HIT

Meaning (from Cloudflare's docs)

The resource was found in Cloudflare's cache

CF-Cache-Status

### MISS

Meaning (from Cloudflare's docs)

Eligible for cache but not present, so it was served from the origin

CF-Cache-Status

### EXPIRED

Meaning (from Cloudflare's docs)

Found in cache but expired, and served from the origin

CF-Cache-Status

### STALE

Meaning (from Cloudflare's docs)

Served from cache while expired, because the origin could not be reached

CF-Cache-Status

### BYPASS

Meaning (from Cloudflare's docs)

Eligible for cache, but the origin response was not cacheable

CF-Cache-Status

### DYNAMIC

Meaning (from Cloudflare's docs)

Not eligible for caching

Request a URL twice and compare

```
curl -sI https://example.com/styles.css | grep -i -E 'cf-cache-status|^age|cache-control' curl -sI https://example.com/styles.css | grep -i -E 'cf-cache-status|^age|cache-control'
```

The first request is often a MISS, the second a HIT. If you only ever see BYPASS or DYNAMIC on a file you expect to cache, look at `Set-Cookie` and `Cache-Control` first.

_05_Worth 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](/glossary/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](/glossary/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. 01 [Caching - HTTP (MDN Web Docs)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching) developer.mozilla.org · checked 2026-10-25
2. 02 [Default cache behavior (Cloudflare Cache docs)](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/) developers.cloudflare.com · checked 2026-10-25
3. 03 [Edge and Browser Cache TTL (Cloudflare Cache docs)](https://developers.cloudflare.com/cache/how-to/edge-browser-cache-ttl/) developers.cloudflare.com · checked 2026-10-25
4. 04 [Cloudflare cache responses (Cloudflare Cache docs)](https://developers.cloudflare.com/cache/concepts/cache-responses/) developers.cloudflare.com · checked 2026-10-25
5. 05 [RFC 9111: HTTP Caching](https://www.rfc-editor.org/rfc/rfc9111) rfc-editor.org · checked 2026-10-25

Questions

## Asked a lot.

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

_01_ What 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.

_02_ What 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.

_03_ Does 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.

_04_ How 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.

_05_ Does clearing the CDN cache clear visitors' browsers?

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

## Keep learning

[All glossary](/glossary)

[Learn Cache-Control Performance](/glossary/cache-control) [Related Time to First Byte (TTFB) Performance](/glossary/time-to-first-byte) [Read next HTTP caching Performance](/glossary/http-caching) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[E-E-A-T](/glossary/e-e-a-t) [Ecommerce SEO](/glossary/ecommerce-seo) [Embeddings](/glossary/embeddings) [Engagement rate](/glossary/engagement-rate)

More in Performance
[Cache-Control](/glossary/cache-control) [CDN](/glossary/cdn) [Chrome UX Report (CrUX)](/glossary/chrome-ux-report) [Content Security Policy](/glossary/content-security-policy) [Content-Length (HTTP header)](/glossary/content-length) [Core Web Vitals](/glossary/core-web-vitals) [Core Web Vitals report](/glossary/core-web-vitals-report) [CORS](/glossary/cors) [Critical CSS](/glossary/critical-css) [Critical rendering path](/glossary/critical-rendering-path) [Cumulative Layout Shift (CLS)](/glossary/cumulative-layout-shift) [dns-prefetch](/glossary/dns-prefetch) [Edge caching](/glossary/edge-caching) [fetchpriority](/glossary/fetchpriority) [First Contentful Paint](/glossary/first-contentful-paint) [First Input Delay (FID)](/glossary/first-input-delay) [font-display](/glossary/font-display) [Gzip compression](/glossary/gzip-compression) [HTTP caching](/glossary/http-caching) [HTTP/2](/glossary/http-2) [HTTP/3](/glossary/http-3) [Image compression](/glossary/image-compression) [Interaction to Next Paint (INP)](/glossary/interaction-to-next-paint) [Largest Contentful Paint](/glossary/largest-contentful-paint)

Terms on this page
[CDN](/glossary/cdn) [HTTP caching](/glossary/http-caching) [Cache-Control](/glossary/cache-control) [Time to First Byte (TTFB)](/glossary/time-to-first-byte)

Free · 2 minutes

## Know the term. _Now check your site._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
