---
title: "What is an edge cache?"
description: "An edge cache keeps copies of your pages on a CDN's servers near visitors, so many requests never reach your server, or your logs."
url: https://ursy.com/wiki/edge-cache/
updated: 2026-11-26T15:46:05+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/edge-cache/
---

# What is an edge cache?

> An edge cache keeps copies of your pages on a CDN's servers near visitors, so many requests never reach your server, or your logs.

**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? {#what-is-an-edge-cache}

MDN describes a [CDN](https://developer.mozilla.org/en-US/docs/Glossary/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](https://ursy.com/wiki/origin-server/), where the website really lives. Our [CDN](https://ursy.com/wiki/cdn/) entry covers the network as a whole; this entry is about the copies it keeps.

## Is it the same as a browser cache? {#is-it-the-same-as-a-browser-cache}

No. MDN’s [caching guide](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching) 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? {#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](https://ursy.com/wiki/time-to-first-byte/) and, further down the line, in [largest contentful paint](https://ursy.com/wiki/largest-contentful-paint/) and the other [Core Web Vitals](https://ursy.com/wiki/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](https://ursy.com/wiki/why-your-website-is-slow/) walks through the rest of [page speed](https://ursy.com/wiki/page-speed/).

## Why does it matter for search? {#why-does-it-matter-for-search}

Search crawlers ask for pages again and again. [Google](https://ursy.com/wiki/google/)’s [crawler overview](https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers) says its [crawling](https://ursy.com/wiki/crawling/) systems support [HTTP](https://ursy.com/wiki/http/) [caching](https://ursy.com/wiki/caching/) with `ETag` and `Last-Modified`, and it recommends `ETag`. Its [crawl budget guide](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget) adds that a `304 (Not Modified)` reply tells Google to reuse the copy it already has. Fast, cheap answers help a [search crawler](https://ursy.com/wiki/search-crawler/) spend its [crawl budget](https://ursy.com/wiki/crawl-budget/) on pages that really changed.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI crawlers](https://ursy.com/wiki/ai-crawler/) such as [GPTBot](https://ursy.com/wiki/gptbot/), and [live fetchers](https://ursy.com/wiki/live-fetcher/) such as [ChatGPT-User](https://ursy.com/wiki/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](https://ursy.com/wiki/why-analytics-numbers-are-low/). The edge saw the [bot](https://ursy.com/wiki/bot-web-robot/); your website did not.

## How does it work? {#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? {#what-controls-it}

Mostly the `Cache-Control` header your server sends, plus the CDN’s own settings. The main [directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control):

- `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](https://ursy.com/http-header-checker/).

## What does the CDN cache by default? {#what-does-the-cdn-cache-by-default}

It depends on the CDN, so read its own documentation. Cloudflare’s [default cache behaviour](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/) page, for example, says it does not cache [HTML](https://ursy.com/wiki/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](https://ursy.com/wiki/cookie/) on every visit may never be cached at all. See [first-party cookies](https://ursy.com/wiki/first-party-cookies/) and [cookie banner](https://ursy.com/wiki/cookie-banner/).

## How do I read a cache status? {#how-do-i-read-a-cache-status}

Many CDNs add their own status header. Cloudflare’s is [`CF-Cache-Status`](https://developers.cloudflare.com/cache/concepts/cache-responses/):

| 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 {#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](https://ursy.com/wiki/cache-purge/).

## Common mistakes {#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](https://ursy.com/wiki/bot-traffic-in-analytics/).
- **Caching a redirect or an error by accident.**  A cached [404](https://ursy.com/wiki/404-and-410/) or a wrong [redirect](https://ursy.com/wiki/redirect/) keeps going out after you fix it.

## How to check it {#how-to-check-it}

1. Open one page in our [HTTP Header Checker](https://ursy.com/http-header-checker/). Read `Cache-Control`, `Age`, `ETag` and `Last-Modified`, plus any CDN status header. The [HTTP Header Checker guide](https://ursy.com/guides/how-to-use-http-header-checker/) explains each line. The [Edge Cache Checker](https://ursy.com/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](https://ursy.com/cookie-checker/) will list what a page sets.
3. Check the [status code](https://ursy.com/wiki/http-status-code/) of old addresses and their redirect hops with the [Redirect Checker](https://ursy.com/redirect-checker/), so a cached redirect is a deliberate one.
4. Check that [robots.txt](https://ursy.com/wiki/robots-txt/) and your [XML sitemap](https://ursy.com/wiki/xml-sitemap/) are current, because CDNs cache them too. Use the [Robots.txt Checker](https://ursy.com/robots-txt-checker/) and the [XML Sitemap Checker](https://ursy.com/sitemap-checker/).
5. See which [AI crawlers](https://ursy.com/wiki/ai-crawler/) your rules let in with the [AI Bot Checker](https://ursy.com/ai-bot-checker/), and test a logged address with [Verify an AI Bot](https://ursy.com/verify-ai-bot/). A bot can be answered from the edge and still be fake. See [verified bots](https://ursy.com/wiki/verified-bots/) and [reverse DNS bot check](https://ursy.com/wiki/reverse-dns-bot-check/).
6. Read your CDN’s own log next to your [server logs](https://ursy.com/wiki/server-logs/). Each [user agent](https://ursy.com/wiki/user-agent/) that appears only in the CDN log was answered from the edge. The [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/) will read a log in your browser.
7. Measure the speed gain with the [Page Speed Checker](https://ursy.com/page-speed-checker/) (coming soon) and the [Core Web Vitals Checker](https://ursy.com/core-web-vitals-checker/) (coming soon).
8. Compare your cache and header setup with a rival’s in [Compare Two Websites](https://ursy.com/compare-websites/).
9. For the whole site over time, the [edge cache report](https://ursy.com/pro/edge-cache-report/), [cached-page visitors](https://ursy.com/pro/cached-page-visitors/), [bot cost](https://ursy.com/pro/bot-cost/) and [crawl budget by bot](https://ursy.com/pro/crawl-budget-by-bot/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-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](https://ursy.com/methodology/) page.

## Questions {#questions}

### Does an edge cache hide bots from my analytics? {#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](https://ursy.com/wiki/observed-vs-inferred-data/).

### Should HTML pages be cached at the edge? {#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? {#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? {#does-googlebot-use-the-cache}

Google says its crawlers support HTTP caching with `ETag` and `Last-Modified`, and [Googlebot](https://ursy.com/wiki/googlebot/) uses it when it re-crawls pages for Search. A `304` tells Google to reuse what it has.

## Related words {#related-words}

- [CDN](https://ursy.com/wiki/cdn/)
- [Origin server](https://ursy.com/wiki/origin-server/)
- [Cache purge](https://ursy.com/wiki/cache-purge/)
- [Server logs](https://ursy.com/wiki/server-logs/)
- [Time to first byte](https://ursy.com/wiki/time-to-first-byte/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [Bot traffic in analytics](https://ursy.com/wiki/bot-traffic-in-analytics/)
- [Hit analytics](https://ursy.com/wiki/hit-analytics/)
- [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/)

## Sources {#sources}

- [MDN Glossary: CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN), checked 24 November 2026
- [MDN: Cache-Control header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control), checked 24 November 2026
- [MDN: HTTP caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching), checked 24 November 2026
- [Cloudflare Docs: Cloudflare cache responses](https://developers.cloudflare.com/cache/concepts/cache-responses/), checked 24 November 2026
- [Cloudflare Docs: Default cache behaviour](https://developers.cloudflare.com/cache/concepts/default-cache-behavior/), checked 24 November 2026
- [Google: Overview of Google crawlers and fetchers (HTTP caching)](https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers), checked 24 November 2026
- [Google Search Central: Crawl budget management for large sites](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
