Cache-Control is private or no-store
- What Cloudflare does
- Does not cache
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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.
Cache-Control is private or no-storeCache-Control is no-cache or max-age=0Set-Cookie header existsCache-Control is public and max-age is greater than 0Expires header is set to a future dateTo 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.
| 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.
CF-Cache-Status, and sets Age when it serves from cache.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.
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.
A stray Set-Cookie on a stylesheet or image is one of the reasons Cloudflare doesn't cache it.
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.
A purge clears the edge only.
For header syntax, see Cache-Control.
5 questions people ask next, answered from the sources on this page.
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.
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.
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.
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.
No. Cloudflare states that purging its cache does not affect assets stored by a visitor's browser.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.