CDN vs caching: what’s the difference?

A CDN and a cache aren’t the same thing. How server-side caching and a content delivery network each speed up a site, and whether you need both.

Guide2 min readLast updated
On this page
  1. The key difference
  2. Which first?
  3. Using both
  4. If it doesn’t work
Server-side page cachingCDN
SolvesSlow page generationDistance between visitor and server
Where it worksOn your hostingAt locations around the world
Typical setupA caching plugin or application settingDNS changes and provider settings
Helps nearby visitorsYes, greatlyA little
Helps distant visitorsPartlyYes
Reduces server loadYesYes, for cached files
CostFree pluginsFree tiers available

The key difference

Caching makes the server faster at producing pages. A CDN makes delivery closer to the visitor. A CDN in front of a slow, uncached site still waits for the slow site whenever it needs a fresh page.

Which first?

  1. Page caching first — it fixes the most common bottleneck and is simple to set up.
  2. Optimise images — the next biggest win.
  3. Add Cloudflare if visitors are far from the server or pages carry lots of static files. It’s the CDN Traxio supports; other CDNs aren’t supported. Using Cloudflare with Traxio hosting

Using both

They work well together. Caching serves pages fast when the CDN asks for them; the CDN serves images, CSS and JavaScript from nearby. Remember to clear both when content changes.

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going