Skip to the content
Start free

CDN (content delivery network)

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

MDN defines a 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. The CDN’s stored copy is its edge cache.

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. If not, it asks the origin, passes the answer on, and may keep a copy for the next visitor. Google’s Search Central blog describes a CDN as an intermediary between your origin server and the end user, and says caching is its biggest focus.

Who decides how long a copy is kept? #

Mostly your server, through the Cache-Control header. MDN 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? #

web.dev 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. web.dev says 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 and why your website is slow.

Google’s crawlers see the CDN, not your server. Google says its crawling is designed to allow higher crawl rates on sites backed by a CDN. But on the first visit to a 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. Google also warns that bots you want can end up on a CDN’s blocklist. See a CDN blocking Googlebot.

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 and duplicate content. For bot-check pages, such as a CAPTCHA or a managed challenge, Google strongly recommends a 503 status code, so content is not dropped from the index.

Why does it matter for AI answers? #

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

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 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 removes the stored copy from the CDN’s servers, so the next visitor gets the new hours.

What the cache status means #

Many CDNs add a header that says whether the cache answered. Cloudflare’s own definitions 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 recommends purging single files by URL, and also offers purge everything, by tag, by hostname and by prefix.

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 and bot protection against 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 #

  1. Read your page’s response headers with the 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 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. CDNs often add their own redirects.
  4. Check that robots.txt answers 200 through the CDN with the Robots.txt Checker. RFC 9309 says that if robots.txt is unreachable through a server error, crawlers must assume complete disallow.
  5. Run the 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. Google publishes its crawler IP lists, so you can allow them in firewall rules. See reverse DNS bot check.
  7. In Google Search Console, use 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 after any CDN change. It shows total crawl requests, average response time and host status.
  9. Run the AI Readiness Checker, and set your headers beside a rival’s with Compare Two Websites.
  10. Speed checks are coming soon: the Page Speed Checker and the Core Web Vitals Checker. The SSL Certificate Checker is live. See Core Web Vitals and SSL certificate.
  11. 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 #

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, 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 page.

Questions #

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

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

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

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

Many offer protection against a DDoS attack and rate limiting. What you get depends on the service and plan.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: CDN (content delivery network). URSY. Updated 26 November 2026. https://ursy.com/wiki/cdn/ · Section links

Tools for this

All 871 wiki entries, A to Z →