Skip to main content
networking

CDN (Content Delivery Network)

A CDN distributes content across geographically dispersed edge servers so users receive data from the nearest location. Reduces latency (no cross-continent round trips), offloads origin traffic, and absorbs DDoS attacks. Cloudflare, Fastly, and AWS CloudFront serve from 200+ global PoPs.

Definition

Content Delivery Networks cache and serve content from edge servers positioned near end users. When a user in Tokyo requests an image from a site hosted in Virginia, the CDN serves it from a Tokyo PoP (Point of Presence) instead of crossing the Pacific. CDNs cache: static assets (images, CSS, JS, fonts), HTML pages (with configurable TTL), API responses (with cache keys), and video streams (HLS/DASH segments). Origin shielding reduces load on your server – the CDN requests from origin once and serves from cache to thousands of users. CDNs also provide: DDoS protection (absorb volumetric attacks across their network), WAF (web application firewall rules at the edge), TLS termination (edge certificates), and performance optimization (image compression, minification, HTTP/3). Modern CDNs (Cloudflare Workers, Fastly Compute) run application code at the edge – not just caching but computing responses in 200+ locations.

Examples

  • Cloudflare: DNS proxy (orange cloud) enables CDN for any origin
  • Cache-Control: public, max-age=86400, s-maxage=604800 (CDN caches 7 days)
  • curl -I https://site.com | grep cf-cache-status (HIT = served from edge)

Related Protocols

Related Terms