"This Post contains affiliate links; this means we earn commissions if you shop through the links on this page"
Does WP Rocket work with Cloudflare CDN services?
Yes, WP Rocket is 100% compatible with Cloudflare and this article shows you how to use WP Rocket with Cloudflare CDN on your website.
Using WP Rocket with Cloudflare could bring faster page speed and boost performance greatly.
Though, WP Rocket has its own premium CDN service, Rocket CDN. But for customers already with Cloudflare and who want to use WP Rocket on their WordPress blog, it makes sense to go with Cloudflare.
WP Rocket 8th Year Anniversary Celebration – 25% Discount Offer
How to Integrate WP Rocket With Cloudflare
If you prefer a video tutorial, this might be useful…watch this.
For step-by-step instructions, read on…
First thing first, you need a Cloudflare account to use WP Rocket along with Cloudflare. Without that, it will be impossible to use the two together.
So if you don’t have a Cloudflare account set up already, head over to the Cloudflare homepage to signup for a free account.
You only need an email address and a unique password to sign up for a Cloudflare account.
Cloudflare offers a basic free account for its users. Though there are premium plans if you require more CDN, performance, security, and cache function for your website.
The free Cloudflare account is good for use with WP Rocket.
Now that you have a Cloudflare account, and your website domain is added to Cloudflare. Let’s proceed to integrate WP Rocket with Cloudflare CDN (content delivery network).
The next thing you need to do is change your domain Name Servers to the Cloudflare DNS. You can do this from your domain name registrar level.
This is not hard to do, you will find all the information you need on this page.
Regardless of whether you use WP Rocket or not, Cloudflare will be active for your site once your website is added and the domain name server changes to that of Cloudflare.
The Cloudflare name server looks something like this:
It may take up to 24 hours for the name server changes to take effect. So you might not proceed with the configuration immediately.
Configuring WP Rocket With Cloudflare Add-on
Using the WP Rocket Cloudflare add-on will make things simpler and convenient to configure. Though it is not a requirement but an easier way to go through the process.
You will need your Cloudflare API for this setup.
To get your Cloudflare API, follow these steps:
Log into your Cloudflare account. And click on the website (in case you have more than one website with Cloudflare) you want to use with WP Rocket.
On the next page that opens, scroll down and look for “Get your API token” right under the API menu.
On the next tab, click on “API Tokens” from the menu tab. Scroll down and click on “View” from the Global API field.
For security purposes, a pop-up dialog box required your Cloudflare password, and a security question is needed.
Once you supplied these requirements, you can now view and copy your Global API into the appropriate field in the WP Rocket setting page.
In the WP Rocket add-on setting page, you’ll see the Cloudflare add-on status switch. You need to toggle this to on.
Then click on the “Modify Option” button on the page.
This action will open up the Cloudflare tab under the add-on tab.
You need to set these three settings in the Cloudflare add-on tab:
I already covered how to get your Global API from your Cloudflare account. Your email account is no brainer, right?
To get your account Zone ID, log in to your Cloudflare account and click on overview from the top menu icons on the page.
Scroll down, you will see it there…
There are other Cloudflare setting you might want to play with in the WP Rocket. Like the development mode.
And the Optimal setting option. Relative Protocol
Let’s walk through each setting options one after the other.
This option lets you toggle the Cloudflare development mode on/off. So you can safely temporarily suspend Cloudflare edge caching and the minification features.
This is useful for selecting a pre-defined performance option for improving your site through Cloudflare.
This option set:
If you need to re-write the URL of static files, then this option becomes useful. Otherwise, it only needs to be toggled on if you use Cloudflare flexible SSL features.
If your WordPress blog runs on full SSL protocol, never use this features. It may break your website functionalities.
Other WP Rocket Setting to Consider
Since Cloudflare is a CDN for your domain name, you don’t need to configure this in the WP Rocket CDN tab.
You don’t need to enter the Cloudflare CNAME there.
WP Rocket Pricing and Plans
WP Rocket offer (3) three standard licence plans for your website needs.
The single website license is ideal for one website use and cost $49 per year. You have 1 year of support and plugin updates, too.
If you run a single website and need to boost page speed and performance, this is the best WP Rocket license for you.
The plus license is ideal for 3 websites use. Cost $99 for a year license, supports and plugin updates.
While the Infinite license gives you unlimited installation of WP Rocket on any WordPress blogs.
If you’re an agency that offers website performance services such as:
The Infinite plan cost $249 per year license, plugin updates and supports.
WP Rocket is unarguably the most widely used WordPress cache plugins. And Cloudflare is certainly one of the most popular CDN solutions today.
So using the two speed and performance solutions together will make a BIG difference in your site performance.