# Content Delivery Network (CDN)

> Servers in many places. Each keeps copies of your files near the people who visit.

**Field:** Infrastructure  
**Category:** Web Serving & Nginx  
**Also known as:** CDN, Content Distribution Network, Edge Network

## Think of it like

It is like a chain of corner shops that stock the same goods. You buy from the one nearest you.

## Definition

A content delivery network, or CDN, is a set of servers around the world that keep copies of a site's files. A visitor gets files from the nearest copy, not from the far-away main server. That makes pages load faster and takes load off the main server. The main server is called the origin. A CDN also helps soak up floods of traffic.

## Example

Emma's server is in Frankfurt. A visitor in Tokyo gets her images from a CDN server in Tokyo, so they load much faster.

## Why it matters

Distance adds delay. A CDN cuts that delay for visitors far from your server.

## Common mistake

Forgetting that the CDN keeps old copies. After a change, clear its cache, or visitors see the old file.

## Three principles

- **Copies nearby.** Files sit close to visitors.
- **Origin behind.** The main server fills the copies.
- **Less load.** Fewer requests reach the origin.

## Related terms

- [Cache-Control Header](https://learn.benibix.com/term/infrastructure/cache-control)
- [Reverse Proxy](https://learn.benibix.com/term/infrastructure/reverse-proxy)
- [Latency](https://learn.benibix.com/term/infrastructure/latency)
- [Cache](https://learn.benibix.com/term/development/cache)
- [Distributed Denial of Service (DDoS)](https://learn.benibix.com/term/infrastructure/ddos-attack)

![Visitors on the left reach a nearby CDN server that keeps copies of files for as long as their Cache-Control header allows. Requests it cannot answer go on to the origin, where a reverse proxy takes them over HTTPS and passes them to two app servers behind it.](https://learn.benibix.com/diagrams/inf2-reverse-proxy.svg)

---

Source: https://learn.benibix.com/term/infrastructure/content-delivery-network
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
