Skip to main content
Explainer

What is a CDN?

A Content Delivery Network is a globally distributed mesh of servers that sits between your origin and your visitors. When a request comes in, the CDN serves it from the nearest edge location instead of round-tripping all the way to your origin. Faster for the user, cheaper for you, harder for attackers.

What you get

How a request actually flows

  1. Your domain's DNS A record points at a CDN-provided IP, not your origin. Anycast routing drops the user at the closest edge.
  2. The edge node checks its cache. Cache hit: served immediately. Cache miss: fetches from origin (often via a "tier 2" shield closer to origin), stores the result, and serves it. Subsequent users in that region get the cached copy.
  3. Cache validity is governed by Cache-Control headers your origin sends. max-age=31536000, immutable for content-hashed assets; no-store for live data.

The big providers

Trade-offs

Want to know if an IP belongs to a CDN? IPFerret detects most major ones — visit the Cloudflare ASN page as an example, or look up any IP at /whois.