CDN Basics: Do You Need One and How It Changes Your Site
A CDN serves copies of your files from nearby servers, speeding up and protecting many sites.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
What it does
It caches static files (images, CSS, scripts) at locations around the world, so visitors load them from a nearby server. Many also add basic protection against attacks.
When it helps
- Visitors in several countries.
- Heavy images.
- Traffic spikes.
Things to know
- Cache must be purged after changes. See clearing every cache.
- SSL modes must match your server. See Cloudflare Errors 520, 521, 522, 523, 525, 526: What They Mean and How to Fix.
- A wrong rule can hide updates or block real users.
Start simple
Use the free tier, keep default rules and test the site. See Cloudflare Free Plan Setup for a Small Website: Steps and Safe Settings.
Related guides
- WordPress High CPU Usage From wp-cron.php: How to Reduce It
- WordPress Site Is Slow: Practical Steps to Speed It Up
- WordPress Site Slow After an Update: Find the Cause
- WordPress Site Health Says a Persistent Object Cache Is Recommended: What It Means
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.