What Is a CDN? A Plain Guide for Website Owners

Spread the love

If you keep asking what is a CDN, here is the short version: a CDN, or content delivery network, is a group of servers in many places that store copies of your files and send them to visitors from the nearest one. Because each of those servers sits at the edge of the network, people call it an edge server. This guide explains how that works, how the cache hit ratio shows whether it is doing its job, and when a CDN for WordPress is worth adding. If your pages feel slow, a CDN is one of several fixes. Our WordPress speed optimization guide covers the others, including images, caching and PHP.

Quick answer: What is a CDN in one line? A content delivery network stores cached copies of your images, CSS, JavaScript and sometimes whole pages on an edge server near your visitors. As a result, files travel a shorter distance, and your own server handles fewer requests. It helps most when visitors are far from your host. It cannot fix a slow database or oversized images on its own.

What is a CDN and how does a content delivery network work?

The MDN web docs define a CDN as a group of servers spread over many locations that store duplicate copies of data, so servers can answer requests based on which one is closest to the user. In other words, what is a CDN in practice? It is a delivery layer between your visitors and your own server, which people call the origin.

According to Google's web.dev guide to CDNs, the visitor connects to a nearby CDN server, which avoids the slow setup steps of a long trip. The CDN then talks to the origin over connections that are already open. The same guide notes that cached content never needs to reach the origin at all, which also reduces the load on that server.

Here is the sequence for one image:

  1. A visitor opens your page, and the browser asks for the image.
  2. The request reaches the nearest edge server.
  3. If the edge has a copy, it sends it at once. People call this a cache hit.
  4. If not, the edge fetches it from the origin, stores a copy and sends it. People call this a cache miss.
  5. The next visitor nearby gets the stored copy.
A server rack in a caching center, the kind of edge server that keeps copies of files near visitors
Servers in a Wikimedia caching center in San Francisco, 2013. Photo: Mutante, CC BY-SA 3.0, via Wikimedia Commons, resized

What can a CDN speed up and what can it not fix?

Once you understand what is a CDN, the next question is what it can improve. Mainly, a content delivery network shortens distance, and it also reduces work on your origin. web.dev says CDNs can significantly reduce Time to First Byte, and that they help Largest Contentful Paint by speeding up both the page and its static files. web.dev's TTFB guide gives a rough guide of 0.8 seconds or less as good and more than 1.8 seconds as poor.

However, a CDN does not rewrite slow code. For example, it will not fix an overloaded database, a heavy theme or a 5 MB photo. web.dev notes that images make up about half of the transferred bytes on the median page, so resize and compress them first. Some CDNs also convert images to formats such as WebP, which is a useful extra.

Our Core Web Vitals guide explains how to measure these results. In short, a CDN supports good scores but does not replace basic optimisation.

What does an edge server cache?

An edge server caches what the origin allows. First, static files are the easy case: images, fonts, stylesheets and scripts. Cloudflare's documentation, for example, says it caches by file extension, covering types such as JPG, PNG, WEBP, WOFF2, CSS, JS and PDF. It adds that HTML and JSON are not cached by default, so a cache rule is needed to store them.

Several signals stop caching:

  • A Cache-Control header set to private, no-store, no-cache or max-age=0.
  • A Set-Cookie header on the response.
  • Any request method other than GET.

For static files, web.dev suggests a long lifetime, such as six months to a year. For dynamic pages, even a few seconds of caching under heavy traffic can cut the load on the origin. Because old copies can mislead visitors, most CDNs let you purge a file when you change it.

What is a cache hit ratio and how do you improve it?

A cache hit ratio is the share of requests the CDN answers from its cache. web.dev defines it as cache hits divided by total requests over a period, and it says 90% is a good goal for most sites. A new cache starts at 0% and climbs when visitors request files.

To improve the cache hit ratio, web.dev suggests these steps:

  • Cache every cacheable file for the right length of time.
  • Ignore query parameters that do not change the file, such as a referral ID.
  • Sort query parameters, so different orders do not create separate copies.
  • Avoid unnecessary Set-Cookie headers, because caches usually skip those responses.

If your ratio is low, look first at cookies and cache headers.

Do you need a CDN for WordPress?

A CDN for WordPress helps most when your visitors live far from your hosting server, or when traffic spikes. Our speed guide says that for a local business with a nearby host, caching and image fixes usually matter more. Even so, many hosts include a content delivery network, so check yours before you add anything.

The table compares common routes for a CDN for WordPress. These products are examples of each type, not recommendations.

RouteHow it worksThings to check

|—|—|—|

Host-included CDNYour host turns it on in the control panelWhich files it covers, and the cost
Image and static file CDNA plugin serves images and CSS or JS from the provider's serversJetpack says its free tool serves photos, images and static files from WordPress Core, Jetpack and WooCommerce, but not audio or video
Full-site edge cacheA DNS-level service serves pages from its edgeCloudflare says its APO service serves a whole WordPress site from the edge and needs the Cloudflare for WordPress plugin
Separate storage CDNMedia files live on a storage service behind a CDNCost, access rules and the file addresses your pages use

What is the safe order for adding a CDN?

Whichever route you pick, follow the same safe order. First, take a backup, as our WordPress backup guide explains. Next, enable the CDN on a staging copy. Then test the home page, a post, the login page and any cart or checkout. Finally, purge the cache and compare speed before and after.

To pick a host that fits, read our guides on how to choose web hosting and cloud hosting vs shared hosting.

Where are CDN edge locations, and does it matter in Thailand?

Location matters because distance adds delay. If your server sits in Europe and your visitors are in Bangkok, every uncached request crosses the world. Providers also publish maps of their locations. As of November 2026, Cloudflare's network page lists 348 cities in eight regions, including Bangkok, Chiang Mai and Surat Thani. Other providers have different maps, so check where they serve traffic before you choose.

If you wonder what is a CDN worth to a Thai audience, start with where your visitors live. If most of them are in Thailand, a CDN with local locations may help most. Instead, move to a host with a server in Asia. For a site that targets travellers or customers in several countries, a CDN covers all of them with one setup. Also, consider a VPS for beginners only if you are ready to manage the server yourself.

Samples of submarine fibre cables, the physical links that carry traffic between a visitor and a CDN
Submarine cable samples: the long distance a CDN helps you avoid. Photo: Lonnie Hagadorn, CC BY-SA 4.0, via Wikimedia Commons, resized

What are the downsides and risks of a CDN?

Anyone asking what is a CDN should also know the downsides. A content delivery network adds convenience and some risk. MDN lists three drawbacks for CDNs that host shared libraries:

  • Dependency: if the CDN goes down or is blocked in a region, your site can break.
  • Attack surface: if attackers compromise the CDN, they could serve malicious files.
  • Performance: extra DNS lookups and connections can slow things down, and browsers no longer share cache between sites.

For scripts from a third-party CDN, MDN recommends Subresource Integrity. You add a hash to the script tag, and the browser refuses to run a file that no longer matches. Also be careful with stale content, privacy and cookies. Also, if you sell online, check that carts and logged-in pages are not cached for other people.

How do you test whether your CDN works?

After you learn what is a CDN and set one up, test it with simple checks before you trust it:

  1. Open your page in a private window and look at the response headers in your browser's developer tools. Many CDNs add a cache status header, though names differ.
  2. Then reload and see whether the status changes from miss to hit.
  3. Run PageSpeed Insights before and after, and compare TTFB.
  4. Test from a phone on mobile data and from another country if you can.
  5. Next, check that images, fonts and scripts load from the expected address.
  6. Log in, add a product to a cart and confirm that private pages stay private.
  7. Watch your cache hit ratio in the CDN dashboard, if it shows one, and look for an edge server in the region you care about.

A CDN checklist

Use this list once you understand what is a CDN and how it fits your site:

  • You know where your visitors live.
  • Images are resized and compressed first.
  • You took a backup and tested the CDN for WordPress on staging.
  • Cache headers allow static files to stay cached for months.
  • Cookies do not block caching of public files.
  • You can purge a file quickly.
  • You compare TTFB and your cache hit ratio after a week.

Need help with a CDN?

Develop Marketing helps businesses with social media, AI content, SEO, AEO and GEO, WordPress websites and advertising. If you would like help with a slow WordPress site, see our services page (in Thai) or contact us.

Frequently asked questions

What is a CDN, and is it the same as web hosting?

No. Your host stores the original site and runs the software. A CDN stores copies and delivers them from many places, and it works alongside your host.

Does a CDN improve SEO?

Indirectly. A CDN can lower TTFB and help page speed, and speed supports a better experience. It does not guarantee higher rankings, so combine it with good content.

Do I need a CDN for a small local website?

Not always. If your visitors and your host are in the same region, caching and image fixes usually matter more. Test first, then decide.

Can a CDN cache my whole WordPress site?

Some can. Cloudflare says its APO service serves a whole WordPress site from the edge. Other setups only cache static files, so read each product's description.

Is a free CDN for WordPress good enough?

Free tools exist, for example the one Jetpack describes for sites running its plugin. Whether one suits you depends on your traffic, files and needs, so compare features rather than price alone.

Final thoughts

So, what is a CDN? It is a network of edge servers that keeps copies of your files close to visitors. The network shines when your audience is far away, when traffic is high or when your host is slow to start. Even so, image compression and clean code still matter. If you add a CDN for WordPress, test first, check your cache hit ratio, and keep private pages out of the cache. Then you get the speed without the surprises.

Related Posts

Sell on Etsy from Thailand: Setup, Payoneer and Fees

Spread the love

How to sell on Etsy from Thailand as of November 2026: shop setup, Etsy Payments with Payoneer, the layers of seller fees and Offsite Ads.

YouTube Demonetization: Reasons, Appeals and How to Recover

Spread the love

YouTube demonetization as of November 2026: the difference between video and channel level, how appeals work, and which policies cause most problems.

You Missed

Ao Luek to Phi Phi: Road, Pier and Ferry Times from Krabi

Ao Luek to Phi Phi: Road, Pier and Ferry Times from Krabi

Susan Hoi Shell Cemetery: Fees, Low Tide and the Fossil Slabs of Krabi

Susan Hoi Shell Cemetery: Fees, Low Tide and the Fossil Slabs of Krabi

Thailand Digital Nomad Tax: The 180-Day Rule and Foreign Income

Thailand Digital Nomad Tax: The 180-Day Rule and Foreign Income

Best Beaches in Hua Hin: Khao Takiab, Suan Son Pradipat and Sai Noi

Best Beaches in Hua Hin: Khao Takiab, Suan Son Pradipat and Sai Noi

Khao Mok Gai: Thai Chicken Biryani, Green Sauce and Halal Tips

Khao Mok Gai: Thai Chicken Biryani, Green Sauce and Halal Tips

Thailand in November: Weather, Festivals and Which Coast to Pick

Thailand in November: Weather, Festivals and Which Coast to Pick