Telecom Glossary

What Is a CDN (Content Delivery Network)?

A plain-English guide to the networks that deliver most of the web: how a CDN caches your site at the edge, what the origin and cache headers do, how it helps against attacks and whether a small business site needs one.

A CDN (content delivery network) is a distributed set of servers in many locations that store copies of a website's files and deliver them to each visitor from a server nearby, while the original stays on the site's own host, called the origin. For a business, a CDN mainly makes a website faster for distant visitors, takes load off the hosting server and helps the site stay online through traffic spikes and many kinds of attack.

A CDN serves the people visiting your website. It has no effect on your office's own internet circuit, although your staff benefit from CDNs every day: much of the video, software updates and web content they download comes from CDN servers placed close to, or inside, your carrier's network.

How a CDN works

  1. DNS points visitors to the CDN. You change your domain's DNS records, or move the whole domain's DNS to the CDN, so that requests for your site go to the CDN instead of straight to your host.
  2. The visitor reaches a nearby edge server. The CDN routes each request to one of its edge locations, usually the closest or least busy one.
  3. Cache hit: if that edge already holds a fresh copy of the file, it sends it immediately.
  4. Cache miss: if not, the edge fetches the file from your origin, sends it to the visitor and keeps a copy according to your caching rules.
  5. The next visitor in that region gets the stored copy without the request ever reaching your origin.

Because the switch happens in DNS, setting up or removing a CDN is mostly a DNS change, and the usual DNS cautions apply: lower the record's TTL beforehand and keep your email records intact. Our guide to business DNS explains records and TTL.

Edge locations and why distance matters

A CDN's edge locations are its points of presence: racks of caching servers in data centers across many cities. Our page on the point of presence explains the general idea. CDNs tend to place them in the buildings where networks meet, and connect at internet exchange points and directly with internet providers, so the path from a visitor to the nearest edge is short.

Distance matters more for a web page than for a single download, because loading a page takes many round trips: setting up the connection, negotiating encryption, then requesting the page and each file it refers to. Every round trip pays the delay of the distance, so cutting a long trip to a short one speeds up the whole sequence. Our guide to latency, jitter and packet loss covers how distance turns into delay.

Caching and cache headers

A CDN caches what is the same for every visitor. That usually means images, style sheets, scripts, fonts, video segments, downloads and, on simpler sites, whole pages. It should not cache anything personal: logged-in account pages, shopping carts, checkout pages and form responses must go to the origin every time.

Your origin tells the CDN and browsers what to do through HTTP response headers. These are the ones that matter most:

Header or settingWhat it tells caches
Cache-Control: max-ageHow many seconds a browser or cache may reuse the file without checking again
Cache-Control: s-maxageThe same, for shared caches such as a CDN only; overrides max-age there
Cache-Control: no-cacheA copy may be stored, but must be checked with the origin before each reuse
Cache-Control: no-storeDo not store the response anywhere
Cache-Control: privateOnly the visitor's own browser may store it, never a shared cache
ETag and Last-ModifiedLet a cache ask the origin whether its copy is still current without downloading it again
VaryWhich request details, such as language or compression, produce different versions of the same URL

Most CDNs also let you set rules in their own dashboard that override the headers. When you change a file, you can purge it from the cache, or give changed files new names, such as a version number in the file name, so the old copies are simply never requested again. Watch query strings and cookies too: if the CDN treats each variation of a URL as a separate file, it can end up storing many copies and rarely serving any from cache.

The origin server

The origin is wherever the master copy of your site lives: a hosting account, a server you run, or a storage service. With a CDN in front, the origin handles far fewer requests, which can let a modest hosting plan cope with a busy day.

Two settings protect it. First, if your host allows it, accept web traffic only from the CDN, so attackers who discover the origin's address cannot go around the CDN. Second, use a tiered or shielded cache if one is offered, where edge locations fetch from an intermediate cache instead of all calling the origin at once after a purge.

TLS at the edge

When a site runs through a CDN, each visitor's HTTPS connection ends at the edge server, which needs a valid certificate for your domain. Many CDNs can issue and renew one for you. The connection from the edge back to your origin is a second, separate leg. Make sure it is also encrypted and that the CDN checks the origin's certificate, because some setups allow that leg to run unencrypted or unverified, which leaves visitor data exposed between the CDN and your host. Ending encryption close to the visitor also saves time, since the setup round trips run over a short distance.

DDoS protection and a CDN

A large CDN spreads its capacity across many locations, so a flood of traffic aimed at a site behind it is absorbed across the whole network instead of landing on one server. Many CDNs add a web application firewall and rate limiting for attacks that look like normal requests, such as repeated logins or searches.

That protection covers only traffic that passes through the CDN. It does nothing for your office circuit, your VPN or anything else on your own IP addresses. Those need filtering upstream in a carrier's network or a scrubbing service, which our guide to DDoS protection covers in full.

CDN vs web hosting

Web hostingCDN
Main jobStores and runs your websiteDelivers copies of it from many locations
Holds the master copyYesNo, it holds cached copies
Runs forms, databases and loginsYesGenerally no; it passes those requests to the origin
LocationOne data center, or a fewMany cities
Can a site run without itNoYes
Often bundled with the otherMany hosting and site-builder plans include a CDNSome CDNs offer storage or simple hosting

Does a small business site need a CDN?

Check your current hosting plan first. Many hosting and site-builder plans already put a CDN in front of every site, and adding a second one adds complexity for no gain. If yours does not, these are signs a CDN is worth setting up:

  • Visitors come from across the country or abroad, while the host is in one place.
  • Pages are heavy with photos or video, or you offer large downloads.
  • Traffic spikes around campaigns, press coverage or seasonal sales.
  • The site takes orders or bookings, so downtime costs money directly.
  • The site has been attacked before, or someone has a motive to try.

A local business whose visitors are mostly nearby, on a light site hosted in the same region, may see little difference. Test your page load times from a few distant locations before and after, and let the numbers decide.

How FiberX helps

A CDN usually comes from a CDN provider or with your web hosting plan. FiberX's part is the connection underneath. If you host your site, applications or other public services on your own equipment, we get quotes from several carriers for your address or data center, including IP transit and upstream DDoS protection through our cybersecurity services. The carrier pays us, so there is no markup. Request a quote, or call or text 478-758-8091.

// QUESTIONS

Frequently Asked Questions

01Does a CDN replace web hosting?

No. A CDN delivers copies of your site, but the master copy, forms and databases still live on your host. A site needs hosting and may or may not need a CDN.

02Will a CDN make my website faster?

Usually for visitors far from your host, and for pages with many images or large files. For nearby visitors on a light site, the difference can be small, so test before and after.

03Can a CDN cache dynamic or logged-in pages?

It should not cache anything personal, such as account pages, carts or checkout. Those requests pass through to the origin, while the shared files on the same pages can still be cached.

04How do I clear a CDN cache after updating my site?

Most CDNs offer a purge option that removes a file or the whole cache. Giving changed files new names, such as a version number, avoids the need to purge them at all.

05Does a CDN protect my office internet from attacks?

No. A CDN protects only the website traffic that passes through it. Your office circuit and its IP addresses need upstream DDoS protection from a carrier or scrubbing service.

06Is a CDN free?

Some CDN services have free tiers, and many hosting plans include one. Paid plans vary by traffic, features and support, so compare what is already in your hosting plan first.

// FREE · NO OBLIGATION · SAME-DAY RESPONSE

Want This Priced for Your Address?

Reading is cheap; a real number for your building is better. Pick a time below, or call and we will talk it through.

EMAIL INFO@FIBERXINTERNET.COM · TEXT (478) 758-8091

FIBERX · APPOINTMENT CONSOLE
Book an Appointment

Talk to Phil. Pick a Time.

A quick call with your dedicated agent — internet quotes, AI automation, or both. No obligation, same-day response.

Pick your 30-minute slot ALL TIMES ET
or call 478-758-8091

REQUEST GOES STRAIGHT TO PHIL · SAME-DAY CONFIRMATION

Call now · same-day478-758-8091