Skip to the content
Start free

What is an edge cache?

An edge cache is a store of copies of your pages and files on a CDN’s servers, close to your visitors, so many requests are answered there and never reach your own server. It makes pages faster and takes load off your server. It also changes what your own logs can see: a visit the edge answers leaves no trace on your website unless you read the CDN’s log as well.

What is an edge cache? #

MDN describes a CDN as a group of servers in many places that keep duplicate copies of data and answer from the server closest to each user. The “edge” is that outer ring of servers. Behind it sits your origin server, where the website really lives. Our CDN entry covers the network as a whole; this entry is about the copies it keeps.

Is it the same as a browser cache? #

No. MDN’s caching guide calls a browser cache a private cache: it is tied to one person, so it may hold a personal page. An edge cache is a shared cache. It sits between visitors and your server and reuses one stored copy for many people. MDN also calls CDNs “managed caches”: the site owner sets them up on purpose to take load off the origin.

Why does it matter for people? #

A copy served from a nearby server starts arriving sooner than a page your server has to build. That shows up in time to first byte and, further down the line, in largest contentful paint and the other Core Web Vitals. If your site feels slow only on some pages, the cache is one of the first things to check. Our guide to why your website is slow walks through the rest of page speed.

Search crawlers ask for pages again and again. Google’s crawler overview says its crawling systems support HTTP caching with ETag and Last-Modified, and it recommends ETag. Its crawl budget guide adds that a 304 (Not Modified) reply tells Google to reuse the copy it already has. Fast, cheap answers help a search crawler spend its crawl budget on pages that really changed.

Why does it matter for AI answers? #

AI crawlers such as GPTBot, and live fetchers such as ChatGPT-User, are often answered from the edge. That is good for speed. But a stale copy means an assistant may read last week’s price. And if you only look at your own server, you will undercount these visits, which is one reason analytics numbers look low. The edge saw the bot; your website did not.

How does it work? #

A request reaches the nearest edge server. If a fresh copy is stored there, the edge answers at once: a hit. If not, it asks your origin, passes the reply on, and may keep a copy for next time: a miss. MDN explains freshness with the Age header. A copy is fresh while its age is less than max-age; after that it is stale and must be checked with your server before reuse. MDN calls that check validation.

What controls it? #

Mostly the Cache-Control header your server sends, plus the CDN’s own settings. The main directives:

  • max-age=N: the copy stays fresh for N seconds.
  • s-maxage=N: how long it stays fresh in a shared cache such as a CDN. Browsers ignore it.
  • private: only the visitor’s own browser may store it.
  • public: a shared cache may store it.
  • no-cache: it may be stored, but must be checked with your server before each reuse.
  • no-store: no cache of any kind should store it.
  • stale-while-revalidate: the cache may reuse a stale copy while it fetches a fresh one.
  • stale-if-error: the cache may reuse a stale copy when your server returns a 500, 502, 503 or 504 error.

Read the raw headers of any page with our HTTP Header Checker.

What does the CDN cache by default? #

It depends on the CDN, so read its own documentation. Cloudflare’s default cache behaviour page, for example, says it does not cache HTML or JSON by default. It caches by file extension: images, stylesheets, scripts, fonts and similar files. It also skips caching when your server sends private, no-store, no-cache or max-age=0, when a Set-Cookie header is present, or when the request is not a GET. So a page that sets a cookie on every visit may never be cached at all. See first-party cookies and cookie banner.

How do I read a cache status? #

Many CDNs add their own status header. Cloudflare’s is CF-Cache-Status:

Value What it means
HIT Served from the cache.
MISS Cacheable, but not in the cache yet, so your server answered.
EXPIRED The copy had expired, so your server sent a fresh one.
STALE An expired copy was served because your server could not be reached.
REVALIDATED Your server confirmed the copy was unchanged, then the copy was served.
UPDATING An expired copy was served while a fresh one was fetched in the background.
BYPASS Eligible for caching, but your server’s reply said not to cache it.
DYNAMIC Not eligible for caching, so it went straight to your server.

A worked example #

MDN’s caching guide uses this reply from a shared cache:

HTTP/1.1 200 OK
Content-Type: text/html
Cache-Control: max-age=604800
Age: 86400

max-age=604800 is one week. Age: 86400 says the copy has been in the shared cache for one day. So it stays fresh for another 518,400 seconds, which is six days. If the page changes tomorrow, visitors will still see the old copy unless you purge it. MDN notes that with a managed cache such as a CDN, a stored copy can be deleted at any time from its dashboard or API. See cache purge.

Common mistakes #

  • Caching personal pages. MDN warns that a personal reply without private can be stored in a shared cache and shown to other people. Baskets and account pages must stay out.
  • Long max-age on HTML with no purge. Price and stock changes stay invisible until the copy expires.
  • A cookie on every page. It can switch caching off without anyone noticing.
  • Vary: User-Agent. MDN says it has so many variations that the cache is rarely reused.
  • Counting visits from the origin only. Every bot answered from the edge is missing from your figures. See bot traffic in analytics.
  • Caching a redirect or an error by accident. A cached 404 or a wrong redirect keeps going out after you fix it.

How to check it #

  1. Open one page in our HTTP Header Checker. Read Cache-Control, Age, ETag and Last-Modified, plus any CDN status header. The HTTP Header Checker guide explains each line. The Edge Cache Checker will answer “hit or miss?” in one step.
  2. Run it twice. A MISS then a HIT means caching works. DYNAMIC or BYPASS every time means it does not; look for private, no-store or a Set-Cookie header. The Cookie Checker will list what a page sets.
  3. Check the status code of old addresses and their redirect hops with the Redirect Checker, so a cached redirect is a deliberate one.
  4. Check that robots.txt and your XML sitemap are current, because CDNs cache them too. Use the Robots.txt Checker and the XML Sitemap Checker.
  5. See which AI crawlers your rules let in with the AI Bot Checker, and test a logged address with Verify an AI Bot. A bot can be answered from the edge and still be fake. See verified bots and reverse DNS bot check.
  6. Read your CDN’s own log next to your server logs. Each user agent that appears only in the CDN log was answered from the edge. The AI Crawler Log Analyser will read a log in your browser.
  7. Measure the speed gain with the Page Speed Checker (coming soon) and the Core Web Vitals Checker (coming soon).
  8. Compare your cache and header setup with a rival’s in Compare Two Websites.
  9. For the whole site over time, the edge cache report, cached-page visitors, bot cost and crawl budget by bot are in URSY Pro, opening in stages.

What URSY.com counts #

We read the CDN’s own edge log, which lists every request, cache hits included, with its user agent, path, status, country and cache status. Machines from the edge log become one row each; people there are kept as hourly totals only. A request seen by both the edge and the website has the same Ray ID, so it is counted once. The edge log arrives about 8 to 10 minutes late, so the last hour is incomplete. The rules are on our methodology page.

Questions #

Does an edge cache hide bots from my analytics? #

From your server logs, yes, when the edge answers. Browser analytics never saw most bots in the first place, because bots rarely run its script. Only the CDN’s own log sees every request. See observed vs inferred data.

Should HTML pages be cached at the edge? #

Public pages that look the same for everyone often can be, with a way to purge them when they change. MDN suggests no-cache for main HTML unless you can purge, and private for anything personal.

What is the difference between no-cache and no-store? #

no-cache lets a copy be stored, but it must be checked with your server before each reuse. no-store means no cache keeps it at all.

Does Googlebot use the cache? #

Google says its crawlers support HTTP caching with ETag and Last-Modified, and Googlebot uses it when it re-crawls pages for Search. A 304 tells Google to reuse what it has.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: What is an edge cache?. URSY. Updated 26 November 2026. https://ursy.com/wiki/edge-cache/ · Section links

Tools for this

  • LiveEdge Cache Checkeris this page served from cache?Run the check →
  • LiveHTTP Header Checker (cache, status, X-Robots-Tag)Run the check →
  • LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
  • LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
  • LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
  • LiveSchema Markup CheckerRun the check →
  • ProCached-page visitorsReal people on edge-cached pages (the 40-50% others miss)In URSY Pro →
  • ProEdge cache reportWhat share of pages and visitors the cache servesIn URSY Pro →
  • ProAI shopping feedsOpenAI feed, AI catalogue text, JSONL, knowledge graph from your shopIn URSY Pro →

All 871 wiki entries, A to Z →