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.
| Server-side page caching | CDN | |
|---|---|---|
| Solves | Slow page generation | Distance between visitor and server |
| Where it works | On your hosting | At locations around the world |
| Typical setup | A caching plugin or application setting | DNS changes and provider settings |
| Helps nearby visitors | Yes, greatly | A little |
| Helps distant visitors | Partly | Yes |
| Reduces server load | Yes | Yes, for cached files |
| Cost | Free plugins | Free 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?
- Page caching first — it fixes the most common bottleneck and is simple to set up.
- Optimise images — the next biggest win.
- 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.
- Why is my website slow? How to find the causeA methodical way to find why a website is slow — server response, page weight, third-party scripts or distance — and what to fix first.
- “508 Resource Limit Is Reached” and slowdowns under loadWhat a 508 or resource limit error means, how to find what’s consuming CPU, memory or processes, and the fixes that stop it recurring.
Spotted something out of date or unclear? Tell us and we’ll fix it.