What Is a CDN? How It Works, What It Costs, and Do You Need One

A CDN, or content delivery network, is a network of servers around the world that keeps copies of your website’s files and delivers them from the location closest to each visitor. That makes pages load faster for people far from your hosting server and takes load off the server itself. For many sites a CDN is free: Cloudflare’s free plan includes one.

This guide explains how a CDN works, what it does and does not speed up, what it costs, and whether your site needs one.

Illustration of a central server connected to edge servers around a globe
How this guide was made: this is a research-based guide using Cloudflare’s plans page, bunny.net’s CDN pricing and Hostinger’s CDN documentation, checked on 12 November 2026, in US dollars before tax. It does not include new speed tests. This article contains affiliate links, marked where they appear.
Map-style diagram: a hosting server in one location and CDN edge servers around the world, each serving nearby visitors from a cached copy
Original concept diagram.
Table of Contents
  1. 1How a CDN Works
  2. 2What a CDN Speeds Up, and What It Does Not
  3. 3Other Benefits
  4. 4What a CDN Costs
  5. 5Do You Need a CDN?
  6. 6How to Set One Up
  7. 7Frequently Asked Questions
  8. Is a CDN the same as web hosting?
  9. Does a CDN help SEO?
  10. Is Cloudflare’s free CDN enough?
  11. Why do I still see old images after updating?

How a CDN Works

Without a CDN, every visitor’s browser fetches files from your hosting server, wherever it is. A visitor on another continent waits for each request to travel the whole distance.

With a CDN, copies of your files are stored on “edge” servers in many cities. The first visitor near an edge server causes it to fetch the file from your server, the origin; later visitors in that region get the stored copy straight from the edge. Your origin only hears about requests the edge cannot answer.

What a CDN Speeds Up, and What It Does Not

Two columns: a CDN caches static files such as images, CSS, JavaScript, fonts and video; dynamic content such as PHP pages, form submissions and API responses still goes to the origin by default
Original diagram based on Hostinger’s CDN documentation.

Most CDNs cache static files by default. Hostinger’s documentation lists images, CSS, JavaScript, fonts, and video and media files, and says dynamic content such as PHP pages, form posts and API responses is never CDN-cached on its service; it always goes to your origin.

So a CDN helps most with heavy pages and distant visitors. For the HTML page itself, your server and page cache still matter. Some CDNs can cache full pages too, but that needs careful setup for logged-in users and shops. The guide to reducing TTFB in WordPress explains how the CDN and page cache layers work together.

Other Benefits

  • Less load on your server, because repeat requests are answered at the edge.
  • DDoS protection. Cloudflare lists unmetered DDoS protection on every plan, including Free.
  • Free SSL at the edge. Cloudflare includes a Universal SSL certificate on Free.
  • Security rules, such as IP blocking or a web application firewall, on many CDNs.

What a CDN Costs

OptionPriceNotes
Cloudflare Free$0CDN, DNS, DDoS protection and Universal SSL included
Cloudflare Pro$20 a month billed annually, or $25 monthlyAdds features for professional sites
bunny.net CDNFrom $0.01 per GB in Europe and North AmericaPay as you go, $1 monthly minimum, 14-day free trial
Hostinger CDNIncludedOn Premium plans and higher
Official pricing pages and documentation, 12 November 2026, US dollars before tax; Cloudflare’s and bunny.net’s prices were unchanged on 14–15 November 2026.
Bar chart of bunny.net standard network prices per GB: Europe and North America 0.01 dollars, Asia and Oceania 0.03, South America 0.045, Middle East and Africa 0.06
Original chart from bunny.net’s CDN pricing page, 12 November 2026.

Pay-as-you-go pricing depends on where your visitors are. On bunny.net’s standard network, delivery cost $0.01 per GB in Europe and North America but $0.06 in the Middle East and Africa. The BunnyCDN review covers it in more detail, and you can see bunny.net’s pricing. Affiliate link: I may earn a commission at no extra cost to you.

Do You Need a CDN?

Decision guide: visitors spread across countries or heavy image and video pages, a CDN helps; small site with visitors near your server, a CDN is optional; already on a host with a built-in CDN, use that one
Original diagram.
Your siteCDN?
Visitors in many countriesYes
Image- or video-heavy pagesYes
You want free DDoS protection and SSL at the edgeYes, Cloudflare Free covers it
Small site, most visitors near your serverOptional
Your host includes a CDNUse that one first

Use one CDN at a time. Stacking two can cause redirect loops and confusing cache behaviour. Hostinger CDN vs Cloudflare explains how to choose between a host’s CDN and Cloudflare.

How to Set One Up

  • Host’s built-in CDN: Hostinger’s is under Performance, then CDN, in the website dashboard, and needs no code changes.
  • Cloudflare: add your site and switch your domain’s nameservers to Cloudflare.
  • Pull-zone CDNs such as bunny.net: create a zone that points to your site, then use a plugin or your cache plugin to rewrite file URLs to the CDN address.

After any change to images, CSS or scripts, purge the CDN cache so visitors get fresh copies. If you use LiteSpeed Cache, the guide to purging LiteSpeed Cache covers the page cache side. If you are on Hostinger, you can see its plans, which include a CDN from Premium upwards. Affiliate link: I may earn a commission at no extra cost to you.

Frequently Asked Questions

Is a CDN the same as web hosting?

No. Hosting stores and runs your site. A CDN sits in front of it and delivers copies of files from nearby servers.

Does a CDN help SEO?

Indirectly, by making pages faster for distant visitors. It does not change rankings on its own.

Is Cloudflare’s free CDN enough?

For many small and medium sites, yes. Its free plan includes the CDN, DDoS protection and SSL.

Why do I still see old images after updating?

The CDN is serving its cached copy. Purge the CDN cache and wait a few minutes for the change to spread.

Harshil Barot
About the author
Digital Marketing Strategist & SEO Specialist

Harshil Barot is a digital marketing strategist focused on SEO, website growth and lead generation. He has built websites since 2012 and provided digital marketing services since 2016. His reviews of web hosting, WordPress, SEO and AI tools state whether they draw on personal use, hands-on testing or editorial research.

Share

How I review

Affiliate disclosure: some links on this page are affiliate links, so I may earn a commission if you buy, at no extra cost to you.

Leave a Comment