Skip to content

What Is a CDN? How to Set Up Cloudflare’s CDN on a Cloudways Site (2026 Guide)

On this page

Last updated: · By

Short answer: a CDN (content delivery network) is a network of servers around the world that stores copies of your site’s static files, such as images, CSS and JavaScript, and serves them to each visitor from the server closest to them. On a site on Cloudways you can turn on Cloudflare’s CDN for free: add your domain to a Cloudflare account, change the nameservers at your registrar and leave the site’s records in Proxied mode (the orange cloud). Then purge the Breeze cache. If you don’t want a separate account, you can enable Cloudways’s Cloudflare Enterprise from the panel, for a fee.

⏱ Time needed: 30 minutes + up to 24 hours for the nameservers to update · Difficulty: medium · Last checked against the official documentation: 6 Nov 2026

What is a CDN and how does it work?

Without a CDN, every visitor to your site downloads all the files straight from your server, which sits in one data center. If the server is in Frankfurt and the visitor is in Sydney, every image travels that distance. When thousands of visitors arrive at once, your server works hard on files that never change.

A CDN (Content Delivery Network) solves this. It keeps copies of the files at dozens or hundreds of points of presence around the world. The visitor gets the file from the point nearest to them, and your server is freed up for the work only it can do: building dynamic pages and handling the cart and orders.

Two terms that will help you understand the settings: a Cache Hit is when the CDN already has a copy and serves it immediately. A Cache Miss is when there’s no copy, so the CDN fetches the file from your server and stores it for next time. The more requests are hits, the faster the site and the less loaded the server.

What you gain from Cloudflare’s CDN

  • Faster loading of static files, especially for visitors far from the server.
  • Less load and bandwidth on the server, because a large share of requests is answered from Cloudflare’s network.
  • A security layer: filtering of malicious traffic, DDoS protection and an SSL certificate at the edge of the network.
  • A free plan that’s enough for most sites.

Does a CDN help if your audience is far from your server?

Yes, and usually more than people think. The data center closest to many audiences is in a different region from the visitors, so the server is often an ocean away from part of your readers. Cloudflare has points of presence in many markets, including smaller ones (I covered one such local example separately), so images, CSS and JS files reach the visitor from a much shorter distance. Even if most of your audience is near the server, the CDN takes load off the server at peak hours.

What a CDN won’t fix: an HTML page that is slow to build on the server. If WordPress takes two seconds to build the page, the free CDN won’t shorten that, because by default it only stores static files. You fix that with the cache on the server, and that’s where Cloudways is strong.

How the CDN fits with the Cloudways cache

A WordPress site on Cloudways has several cache layers, and each does something different. A CDN doesn’t replace them, it adds another layer on the outside.

LayerWhere it sitsWhat it storesGuide
Cloudflare CDNOn Cloudflare’s network, close to the visitorStatic files: images, CSS, JSThis guide
VarnishOn the serverFull pages, ready to serveVarnish on Cloudways
BreezeA WordPress pluginPage cache, compression and optimization settingsBreeze on Cloudways
Object Cache (Redis / Object Cache Pro)On the serverResults of database queriesObject Cache Pro

According to Cloudways, Cloudflare’s CDN works with Breeze without special configuration, and there’s no need to turn off a cache plugin after enabling it. Their recommendation: purge the Breeze cache once Cloudflare is active, and leave automatic purging on so the two caches stay in sync.

Before you start

  • Access to your account at the domain registrar, to change nameservers.
  • A screenshot of your existing DNS records, especially the email records.
  • If you’ve already enabled the Cloudways Cloudflare Enterprise add-on, you don’t need this guide. The CDN is already active through it.

Setting up Cloudflare’s CDN, step by step

Step 1: Account and adding the site

  1. Go to cloudflare.com and click Sign Up. Create an account with an email and password.
  2. Enter your domain without www (for example example.com) and click Begin Scan.
  3. Cloudflare scans the DNS records for about a minute. When it’s done, click Continue.

Step 2: The orange cloud, meaning what goes through the CDN

  1. In the list of records Cloudflare found, check that the domain’s A record points to the IP address of your server on Cloudways, and that there is a record for www.
  2. Click the cloud icon next to the site’s records until it’s orange (Proxied). Only records with an orange cloud go through the CDN.
  3. Leave email records and records for services that aren’t a website on a grey cloud (DNS only).
  4. Choose a plan. For most sites the free plan is enough. Continue.

Step 3: Change the nameservers

  1. Copy the two nameservers Cloudflare assigned to your domain. They also appear on the Overview screen.
  2. At your registrar (GoDaddy, Namecheap, etc.), replace the nameservers with Cloudflare’s and save.
  3. Go back to Cloudflare and confirm. When the domain switches over, you’ll get an email saying it’s active.

The full detail of steps 1–3, including adding the domain to the application on Cloudways, setting SSL to Full (strict) mode and the Origin Certificate, is in the guide to connecting Cloudflare to Cloudways. If you haven’t set up SSL yet, do it before you continue.

Step 4: Sync with Breeze

  1. In the WordPress dashboard, purge the entire Breeze cache.
  2. Make sure automatic purging is on in the Breeze settings, so that updating content purges the cache on its own.

Step 5: Check that the CDN really works

Open the site in Chrome, press F12, go to the Network tab and refresh. Pick an image or CSS file, and in the Response Headers look for cf-cache-status. A value of HIT means the file was served from Cloudflare’s cache. MISS on the first visit is normal. On the next refresh it should turn into a HIT.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

Free Cloudflare or Cloudways Cloudflare Enterprise?

The main difference for WordPress sites is Edge Page Caching: with Cloudways Enterprise, HTML pages are stored on Cloudflare’s network too, following the same rules as Varnish. Sensitive pages like the cart, checkout, My Account and the dashboard are excluded automatically. Purging is handled through Smart Cache Purge, which requires Breeze.

Free Cloudflare (your own account)Cloudflare Enterprise (Cloudways add-on)
CostFreeFrom $4.99 per domain per month (as of Nov 2026)
What gets cachedStatic files by defaultStatic files and HTML pages too (WordPress and WooCommerce)
NameserversYou have to switch them to CloudflareNo need. You connect with a CNAME record
ManagementIn a separate Cloudflare accountFrom inside the Cloudways panel

In a load test that Cloudways published (a 2 vCPU, 4GB server, up to 1,000 concurrent users, a static WordPress site), a server cache together with the Enterprise CDN brought the 95th-percentile response time down from 43.2 seconds to 7.01 seconds, and LCP from 678 to 488 milliseconds, compared with a server cache alone. These are the vendor’s figures in a controlled environment, and on your site the results will differ. Field comparisons on real sites of mine are in speed comparisons before and after Cloudways.

My recommendation: for a brochure site or blog, the free plan is enough. For a store with a lot of traffic, or a site with much of its audience abroad, Enterprise is worth testing. The full details, including the trial period, are in the Cloudflare Enterprise guide. The differences between the free plan and Enterprise are laid out here: Cloudflare free vs Enterprise.

When to purge the CDN’s cache

After a design change, swapping an image under the same file name or updating a CSS file, the CDN may still serve the old version. On Cloudflare with your own account, you purge everything from the cache or only specific URLs. On Enterprise you purge from the Cloudways panel. After a purge, the site may be a little slow until the cache is rebuilt, so on a busy site it’s better to purge in quiet hours. The order of operations across all the layers is explained in the guide to clearing the cache on Cloudways.

Common mistakes and how to fix them

Changes aren’t visible on the site: Cloudflare’s cache or Breeze’s is holding an old version. Purge both, and test in a private window.

cf-cache-status doesn’t show at all: the record is in DNS only mode (grey cloud), or the nameservers haven’t moved to Cloudflare yet. Check the cloud state and the domain’s status in Cloudflare.

A redirect loop after enabling it: the SSL mode in Cloudflare is wrong, usually Flexible together with an HTTPS redirect on the server. Switch to Full (strict) once there’s a certificate on the server.

Logged-in users see other people’s pages, or an empty cart: a rule was set that caches HTML pages without excluding the cart, checkout and logged-in users. Remove the rule, or switch to Enterprise, where the exclusions for WordPress and WooCommerce are preconfigured. How to cache HTML pages safely, with a measurement from my own site, is explained in HTML caching on Cloudflare for WordPress.

The CDN didn’t improve the initial load time: probably the page itself builds slowly on the server. Check Varnish and Object Cache Pro, and the heavy plugins on the site.

Sources

Frequently asked questions about CDNs and Cloudflare

What is a CDN in plain terms?

A network of servers around the world that stores copies of a site’s files and serves them to each visitor from the server closest to them. The result is faster loading and less load on the origin server.

Is Cloudflare’s CDN free?

Yes. Cloudflare’s free plan includes a CDN for static files, basic protection and an SSL certificate at the edge. There are paid plans, and Cloudways also offers the Cloudflare Enterprise add-on, paid per domain.

Do I need to turn off Breeze after enabling Cloudflare?

No. According to Cloudways, Cloudflare works with Breeze without extra configuration. The CDN stores static files and Breeze handles the page cache. Purge the Breeze cache after enabling it and leave automatic purging on.

Does a CDN improve Google rankings?

Indirectly, yes. Google takes speed and user experience into account, and a CDN shortens the load time of static files. It’s no substitute for a fast server and a good cache on the server.

Why does a CDN matter for a site whose server is far from its audience?

Because static files are served from a point near the visitor instead of from the distant server, which saves time on every request. The CDN also absorbs part of the load at peak hours and leaves the server more resources for dynamic pages.

Official source: How to Use Cloudflare CDN on Cloudways, How to Enable Cloudflare on Your Application (Cloudways Knowledge Base). This guide was written and tested by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL