---
title: "CDN (content delivery network)"
description: "A group of servers in many places that keep copies of a website's files, so each visitor is served from one close to them."
url: https://ursy.com/wiki/cdn/
updated: 2026-11-26T15:46:05+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/cdn/
---

# CDN (content delivery network)

> A group of servers in many places that keep copies of a website's files, so each visitor is served from one close to them.

**A CDN (content delivery network) is a group of servers in many places that keep copies of a website’s files, so each visitor is served from a server close to them.** It sits between your own server and everyone who visits, people and [bots](https://ursy.com/wiki/bot-web-robot/) alike. Most of the time this makes pages faster and steadier. The catch is that stored copies can go out of date, and the CDN’s bot rules can block crawlers you want.

## What is a CDN? {#what-is-a-cdn}

[MDN defines a CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) as a group of servers spread out over many locations, which store duplicate copies of data so that requests can be served by the servers closest to each user. MDN says CDNs make for fast service that is less affected by high traffic. Your own server, where the site really lives, is called the [origin server](https://ursy.com/wiki/origin-server/). The CDN’s stored copy is its [edge cache](https://ursy.com/wiki/edge-cache/).

## How does it work? {#how-does-it-work}

When a visitor asks for a page, the request goes to the nearest CDN server first. If that server holds a fresh copy, it answers straight away. That is a cache [hit](https://ursy.com/wiki/hit-analytics/). If not, it asks the origin, passes the answer on, and may keep a copy for the next visitor. [Google’s Search Central blog](https://developers.google.com/search/blog/2024/12/crawling-december-cdns) describes a CDN as an intermediary between your origin server and the end user, and says [caching](https://ursy.com/wiki/caching/) is its biggest focus.

## Who decides how long a copy is kept? {#who-decides-how-long-a-copy-is-kept}

Mostly your server, through the `Cache-Control` header. [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control) calls a CDN a shared cache: one stored response reused for many users. So personal pages, such as a basket or an account page, must not be stored there.

| Directive | What MDN says it means |
| --- | --- |
| `max-age=N` | The response stays fresh for N seconds after it is generated |
| `s-maxage=N` | How long it stays fresh in a shared cache; it overrides `max-age` there |
| `public` | The response can be stored in a shared cache |
| `private` | Only a private cache, such as the browser, may store it; use it for personal content |
| `no-cache` | It may be stored, but must be checked with the origin before each reuse |
| `no-store` | No cache of any kind should store it |

MDN stresses that `no-cache` does not mean “don’t cache”. If you mean “don’t store”, use `no-store`.

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

[web.dev](https://web.dev/articles/optimize-ttfb) says CDNs cache content at edge servers physically closer to visitors, and likely serve it with modern protocols such as HTTP/2 or HTTP/3. That shortens [Time to First Byte](https://ursy.com/wiki/time-to-first-byte/). [web.dev says](https://web.dev/articles/ttfb) a good TTFB is 0.8 seconds or less, and a poor one is more than 1.8 seconds. It also warns that a trip back to the origin can negate much of the value of a CDN, and that caching can mask a slow backend. See [page speed](https://ursy.com/wiki/page-speed/) and [why your website is slow](https://ursy.com/wiki/why-your-website-is-slow/).

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

[Google](https://ursy.com/wiki/google/)’s crawlers see the CDN, not your server. Google says its [crawling](https://ursy.com/wiki/crawling/) is designed to allow higher [crawl rates](https://ursy.com/wiki/crawl-rate/) on sites backed by a CDN. But on the first visit to a [URL](https://ursy.com/wiki/url/) the cache is “cold”, so the origin still serves it once, and launching many new pages at once can weigh on your [crawl budget](https://ursy.com/wiki/crawl-budget/). Google also warns that bots you want can end up on a CDN’s blocklist. See [a CDN blocking Googlebot](https://ursy.com/wiki/cloudflare-blocking-googlebot/).

## Which errors does Google recommend? {#which-errors-does-google-recommend}

In the same post, Google says 503 or 429 are the preferred way to signal a temporary block. Network timeouts can get pages removed from the index. Error pages sent with a 200 status can be dropped as duplicates; see [soft 404](https://ursy.com/wiki/soft-404/) and [duplicate content](https://ursy.com/wiki/duplicate-content/). For bot-check pages, such as a [CAPTCHA](https://ursy.com/wiki/captcha/) or a [managed challenge](https://ursy.com/wiki/managed-challenge/), Google strongly recommends a 503 [status code](https://ursy.com/wiki/http-status-code/), so content is not dropped from the index.

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

An [AI crawler](https://ursy.com/wiki/ai-crawler/) meets the same CDN as [Googlebot](https://ursy.com/wiki/googlebot/). If a bot-protection setting blocks it, your pages cannot be read for AI answers, whatever [robots.txt](https://ursy.com/wiki/robots-txt/) says. Many CDNs offer switches to [block AI crawlers](https://ursy.com/wiki/block-ai-crawlers-on-cloudflare/), so check what yours does. And because cached pages are answered at the edge, those visits never reach your server or its [server logs](https://ursy.com/wiki/server-logs/). A plugin or log on your own server misses them.

## A worked example {#a-worked-example}

A bakery changes its Christmas opening hours, but a customer still sees the old ones. The response headers for the page look like this:

```
HTTP/2 200
cache-control: public, max-age=3600
age: 1250
cf-cache-status: HIT
```

`HIT` means the page came from the CDN’s stored copy, not from the bakery’s own server. [MDN defines `Age`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Age) as the time in seconds an object has been in a proxy cache, so this copy is 1,250 seconds old, about 21 minutes. MDN adds that `Age: 0` means the object was probably fetched from the origin. If the CDN follows the `max-age` of 3,600 seconds, the old copy could be served for about another 39 minutes. A [cache purge](https://ursy.com/wiki/cache-purge/) removes the stored copy from the CDN’s servers, so the next visitor gets the new hours.

## What the cache status means {#what-the-cache-status-means}

Many CDNs add a header that says whether the cache answered. [Cloudflare’s own definitions](https://developers.cloudflare.com/cache/concepts/cache-responses/) of its `CF-Cache-Status` values are a clear example:

| Value | Meaning |
| --- | --- |
| `HIT` | Found in the cache |
| `MISS` | Could be cached, but was not in the cache at the time |
| `EXPIRED` | Found in the cache but expired, so served from the origin server |
| `STALE` | Served from the cache, but expired |
| `UPDATING` | Expired, but served from the cache while the origin updates it in the background |
| `REVALIDATED` | The origin confirmed the stored copy was unchanged |
| `BYPASS` | Eligible at request time, but the origin’s answer turned out not to be cacheable |
| `DYNAMIC` | Not eligible for cache |

[Cloudflare’s purge guide](https://developers.cloudflare.com/cache/how-to/purge-cache/) recommends purging single files by URL, and also offers purge everything, by tag, by [hostname](https://ursy.com/wiki/hostname/) and by prefix.

## Common mistakes {#common-mistakes}

- **Caching personal pages.**  Baskets and account pages need `private` or `no-store`.
- **Forgetting to purge.**  Changed prices and opening hours stay old until the copy expires.
- **Purging everything after every edit.**  The cache goes cold and the origin takes the full load. Purge the pages you changed.
- **Blocking good bots.**  Check your [firewall](https://ursy.com/wiki/web-application-firewall/) and [bot protection](https://ursy.com/wiki/cloudflare-bot-fight-mode/) against [verified bots](https://ursy.com/wiki/verified-bots/).
- **Challenge pages with a 200.**  Google asks for a 503.
- **Trusting origin logs alone.**  They miss every cache hit.

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

1. Read your page’s response headers with the [HTTP Header Checker](https://ursy.com/http-header-checker/). Look for `Cache-Control`, `Age` and a CDN header such as `CF-Cache-Status` or `X-Cache`. A dedicated [Edge Cache Checker](https://ursy.com/cache-checker/) is live.
2. Load the page twice. If a cache header changes from `MISS` to `HIT`, the second copy came from the CDN.
3. Check that `http://` and `www` versions reach the right address in one hop with the [Redirect Checker](https://ursy.com/redirect-checker/). CDNs often add their own [redirects](https://ursy.com/wiki/redirect/).
4. Check that robots.txt answers 200 through the CDN with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/). [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html) says that if robots.txt is unreachable through a server error, crawlers must assume complete disallow.
5. Run the [AI Bot Checker](https://ursy.com/ai-bot-checker/) to see which AI bots your rules let in, then compare with your CDN’s bot settings.
6. If your logs show a crawler name, check the address with [Verify an AI Bot](https://ursy.com/verify-ai-bot/). [Google publishes](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) its crawler IP lists, so you can allow them in firewall rules. See [reverse DNS bot check](https://ursy.com/wiki/reverse-dns-bot-check/).
7. In [Google Search Console](https://ursy.com/wiki/google-search-console/), use [URL Inspection](https://ursy.com/wiki/url-inspection/). Google says that if the rendered page shows an empty page, an error or a bot challenge, talk to your CDN.
8. Check the [Crawl Stats report](https://support.google.com/webmasters/answer/9679690) after any CDN change. It shows total crawl requests, average response time and host status.
9. Run the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/), and set your headers beside a rival’s with [Compare Two Websites](https://ursy.com/compare-websites/).
10. Speed checks are coming soon: the [Page Speed Checker](https://ursy.com/page-speed-checker/) and the [Core Web Vitals Checker](https://ursy.com/core-web-vitals-checker/). The [SSL Certificate Checker](https://ursy.com/ssl-checker/) is live. See [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/) and [SSL certificate](https://ursy.com/wiki/ssl-certificate/).
11. 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}

Most pages are answered by the CDN’s cache and never reach the website, so we read the CDN’s own edge log. It lists every request, cache hits included, with its [user agent](https://ursy.com/wiki/user-agent/), path, status, country, cache status and a request ID. A request seen in both the edge log and the website has the same ID and is counted once. Machines become one row each; people in the edge log are counted as hourly totals only. The edge log arrives about 8 to 10 minutes late, so the last hour is incomplete. The full rules are on our [methodology](https://ursy.com/methodology/) page.

## Questions {#questions}

### Do I need a CDN? {#do-i-need-a-cdn}

Not always. It helps most when visitors are far from your server, or when traffic comes in sudden peaks.

### Does a CDN help SEO? {#does-a-cdn-help-seo}

Google says it allows higher crawl rates on CDN-backed sites. Faster pages also help people. A badly set bot rule can hurt.

### Why do I still see the old page? {#why-do-i-still-see-the-old-page}

The CDN, or your browser, is serving a stored copy. Check the `Age` header, then purge that page.

### Will a CDN block AI crawlers? {#will-a-cdn-block-ai-crawlers}

It can, if its bot settings say so. Check your settings and test with our tools.

### Does a CDN protect against attacks? {#does-a-cdn-protect-against-attacks}

Many offer protection against a [DDoS attack](https://ursy.com/wiki/ddos-attack/) and [rate limiting](https://ursy.com/wiki/rate-limiting/). What you get depends on the service and plan.

## Related words {#related-words}

- [Edge cache](https://ursy.com/wiki/edge-cache/)
- [Cache purge](https://ursy.com/wiki/cache-purge/)
- [Origin server](https://ursy.com/wiki/origin-server/)
- [Time to First Byte (TTFB)](https://ursy.com/wiki/time-to-first-byte/)
- [Web application firewall](https://ursy.com/wiki/web-application-firewall/)
- [Cloudflare blocking Googlebot](https://ursy.com/wiki/cloudflare-blocking-googlebot/)
- [HTTP](https://ursy.com/wiki/http/)
- [DNS](https://ursy.com/wiki/dns/)

## Sources {#sources}

- [MDN Web Docs: CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN), checked 24 November 2026
- [MDN Web Docs: Age header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Age), checked 24 November 2026
- [MDN Web Docs: Cache-Control header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control), checked 24 November 2026
- [Cloudflare Docs: Cloudflare cache responses](https://developers.cloudflare.com/cache/concepts/cache-responses/), checked 24 November 2026
- [Cloudflare Docs: Purge cache](https://developers.cloudflare.com/cache/how-to/purge-cache/), checked 24 November 2026
- [Google Search Central Blog: Crawling December, CDNs and crawling (24 December 2024)](https://developers.google.com/search/blog/2024/12/crawling-december-cdns), checked 24 November 2026
- [web.dev: Optimize Time to First Byte](https://web.dev/articles/optimize-ttfb), checked 24 November 2026
- [web.dev: Time to First Byte (TTFB)](https://web.dev/articles/ttfb), checked 24 November 2026
- [Google Search Central: Verifying Googlebot and other Google crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), checked 24 November 2026
- [Search Console Help: Crawl Stats report](https://support.google.com/webmasters/answer/9679690), checked 24 November 2026
- [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
