The Ideal WP Rocket Settings With Cloudflare And StackPath CDN Setup Instructions — Updated 1/9/2020 With Latest Version 3.4.4

Home » Cache Plugins » The Ideal WP Rocket Settings With Cloudflare And StackPath CDN Setup Instructions — Updated 1/9/2020 With Latest Version 3.4.4

If you chose WP Rocket as your cache plugin, you made the best choice considering it was rated #1 in numerous Facebook polls.

WP Rocket comes with many features most cache plugins don’t (see below). That means if you were to use other cache plugins, you would need to install about 6 extra plugins to get those features when WP Rocket already has them built-in (more features, yet less plugins on your site). That’s also why WP Rocket yields better results in GTmetrix/Pingdom and is what I use.

WP Rocket incorporates:

  • Database cleanup (built-in to WP Rocket, or use WP-Optimize)
  • Heartbeat control (built-in to WP Rocket, or use Heartbeat Control)
  • Lazy load images/videos (built-in to WP Rocket, or use WP YouTube Lyte)
  • Host Google Analytics locally (built-in to WP Rocket, or use CAOS For Analytics)
  • Host Google Fonts locally (built-in to WP Rocket, or use CAOS For Fonts, or SHGF)
  • Integration with Cloudflare + other CDNs (built-in to WP Rocket, or use CDN Enabler)

I tested WP Rocket against 3 top free cache plugins and while they all do a great job, WP Rocket gave me the best results in Pingdom (.4s load times). Your cache plugin and hosting are 2 main speed factors so it’s definitely worth the $49. Configuring the right WP Rocket settings with Cloudflare + StackPath can fix over 20 items in Pingdom and GTmetrix. So let’s do that :)

The WP Rocket settings are WAY easier to configure than W3 Total Cache and they update the changelog regularly so you’ll actually get ongoing updates. If you have questions (or want to share your new load time), drop me a comment. WP Rocket also has documentation which I reference throughout the guide. Good luck – remember to benchmark those Pingdom scores!

If you haven’t bought WP Rocket yet, I would appreciate you using my affiliate link. I also donate a good chunk of my affiliate income to charity. You can get 10% off by going to their Coupons Page, sign up for their email list, and they will send you a code.




1. WP Rocket = #1 Rated Cache Plugin

Here are the Facebook polls:

2016 best cache plugin poll

2019 cache plugin poll

Swift vs WP Rocket

2016 cache plugin poll

Best cache plugins 2018 poll

wp rocket vs w3 totla cache

Had to throw this in here :)


I tested WP Rocket, WP Fastest Cache, and W3 Total Cache… making sure all cache plugin settings were configured optimally. WP Rocket won BUT this with the lazy load feature turned ON. The other cache plugins do not have a lazy load option and when I turned lazy load off in WP Rocket, I got a .5s load time… the exact same as WP Fastest Cache. I didn’t see a huge difference when clicking through my pages – both loaded super quickly. I know Pingdom can show different load times during different tests, but I just wanted to share my own experience.

WP Rocket (.406)
Pingdom Page Speed Test

WP Fastest Cache (.527)
WP Fastest Cache Load Times

W3 Total Cache (.619)
W3 Total Cache Load Times

My latest Pingdom report with WP Rocket:



2. Install WP Rocket

Once you purchase WP Rocket you can download it on your account page. Upload it under Plugins → Add New → Upload Plugin. If you’re having issues on Safari see their instructions.

WordPress Plugin Upload


3. Dashboard


Rocket Tester – beta testing for new releases.

Rocket Analytics – lets WP Rocket collect data anonymously. This has minimal affect on load times/CPU, but sending data to any external resource means more work for your server.

Clear Cache – do this when you’re dong configuring the WP Rocket settings.

Preload Cache – generates a cache for your homepage and all internal links you use on the homepage. I don’t do this since I have preload set to “automatic” in the preload tab.

Purge OPcache – purges the OPcache which prevents issues when you update WP Rocket, but it’s still displaying the previous version in the WordPress admin.

Regenerate Critical CSS – do this when you make changes to stylesheets, or add/modify custom CSS via the WordPress Customizer (or a plugin).


4. Cache


Mobile Cache – enable caching for mobile devices, but only “create a caching file for mobile visitors” if you are NOT using a plugin to create a mobile site (eg. free version of WP Touch).

Enable Caching For Logged-in WordPress Users – enable if multiple users are logging into your site (eg. bbPress). This gives each user their own cache, otherwise disable it.

Specify Time After Which The Global Cache Is Cleared – leave as the default. If you rarely update your site or have a lot of static content, you can increase this a bit.


5. File Optimization


Minify Files – ideally these should make all “minify” and “combining” items in your Pingdom and GTmetrix report 99 – 100%. Sometimes enabling these can cause issues with your layout (especially CSS and JS) so check a few pages on your site to make sure this doesn’t happen. If it does, find the problematic files and add them to either the exclude CSS or exclude JS option.

Combine Files – just like minify, enable and check your site for errors.

Combine Google Font Files – Google Fonts are often shown in Pingdom/GTmetrix report. This can help, and you can also trying adding them in “Prefetch DNS Requests” in the Preload tab.

Remove Query Strings From Static Resources – In GTmetix you might see “remove query strings from static resources.” This can help, however most query strings are generated by plugins – expand your items in GTmetrix and see what is making it red – it could be a plugin.

Exclude CSS – if for some reason a minification option messes up your site layout, locate the problematic file and add it here. See WP Rocket’s article on resolving issues with minification.

Optimize CSS Delivery – your page will start loading without CSS styles which is an item in Google PageSpeed Insights. WP Rocket automatically generates this for you. They say

“When you activate the Optimize CSS delivery setting checkbox, CSS will be loaded asynchronously on your site. Additionally, Critical Path CSS will be generated for your website in the background and added upon the next page load.”

JavaScript Files – same concept as CSS only with JavaScript files.


6. Media


Lazy Load – delays loading of images, iframes, and videos until you scroll down the page and they become visible (test to see if you like it or not). This significantly reduces load times and HTTP requests however the ongoing loading can be annoying especially for long content. This can also be done using other free plugins like Lazy Load and Lazy Load For Videos but WP Rocket does a great job. I have it lazy load for photos since it’s annoying.

You can also disable lazy load on individual pages/posts using the sidebar:

WP Rocket Individual Settings

Disable Emojis – these slow down your site. You can also disable these under Settings → Writing → Formatting, then do not convert emoticons.

Embeds – similar to Cloudflare’s hotlink prevention, this prevents sites from embedding your content on their website which sucks up bandwidth and makes your site slower.

WebP Compatibility – disable if you’re not using WebP images or if you’re already using an image optimization plugin to serve WebP images. Otherwise, disable it. WP Rocket will detect if you’re using Imagify, ShortPixel, Optimus, or EWWW to serve WebP images and disables it automatically. That’s because most image optimization plugins already create and serve WebP images for you, so enabling this would cause duplicate functionality. The only time you should enable this is if your image optimization plugin creates WebP images, but doesn’t serve them.


7. Preload

If you want to learn about preloading, WP Rocket has a simple tutorial. Or if you want to dig deeper here is an advanced tutorial which is about WP Super Cache but the same concepts apply. Preload, in somewhat simple terms, is a refresh when the cached pages are all cleared out and refreshed in one go. I would enable it since it improves both website/indexing speed.


Sitemap Preloading – extends the benefit of preload to ALL URLs in your sitemap, not just your homepage and the internal links you use on the homepage. This does not use an external bot like the manual/automatic option… even if the end result is the same. As long as WP Rocket detected your sitemap in “sitemaps for preloading,” there is no need to add it here.

This is what preloading can do for your server:

CPU Usage

Prefetch DNS Requests – Luke made an great list of common domains to prefetch including Google Fonts, Analytics, Maps, Gravatars, YouTube, common social sharing plugins, Disqus, and others. Copy and paste this entire list (or just the ones you need) and paste them into the Prefetch field of WP Rocket. This helps browsers anticipate the requests and load them faster.

Don’t forget to add your StackPath CDN URL (or whatever CDN you’re using), and other external resources not included in this list, which you can usually find in your GTmetrix report. Social sharing, comment, and statistic plugins are very common.


8. Advanced Rules

The advanced options are mainly for excluding cart and checkout pages in eCommerce sites.


Never Cache URL(s) – if you’re using an eCommerce shopping cart not listed by WP Rocket (see the note they have in this settings), add your cart and checkout pages here. Learn more.

Never Cache Cookies – same principal as previous option only based on cookies.

Never Cache User Agent(s) – prevents Googlebot or other user agents from caching pages.

Always Purge URL(s) – let’s say you have a blogroll on your homepage. If you create a new post, you want that homepage blogroll updated immediately by emptying the homepage cache. That’s what this setting does, however WP Rocket automatically clears the cache for your homepage, categories and tags once new content is created… so there is no need for this. But if there are other page’s cache you want cleared when new content is added, add them.

Cache Query String(s) – mainly used to cache search result pages and price filtering pages for eCommerce sites.


9. Database


Post Cleanup – revisions, auto drafts, and trashed posts can be deleted if you don’t use them. Unless you have old versions of posts (or deleted posts) you would like to use, delete them.

Comments Cleanup – spam and trashed comments can be deleted.

Transients Cleanup – stores data that takes a long time to get (like social counts) so the next time you need it, it returns super fast. But sometimes when transients get expired they stay in the database and should be deleted. WP Beginner has a great explanation of transients.

Database Cleanup – when you delete a plugin it can leave unused tables in your WordPress database, which you can delete.

Automatic Cleanup – schedule WP Rocket to cleanup your database. Weekly is good unless these accumulate quickly (eg. many people work on your site). If you have WP-Optimize or another database cleanup plugin installed, you can delete it since WP Rocket does this for you.

Optimize – click the optimize button when you’re done, just be sure to backup your database especially if it’s your first time doing this.


10. CDN

StackPath’s CDN mirrors your site on 30+ data centers across the world, reducing the geographical distance between your server and visitors. I use both Cloudflare and StackPath since more data centers = faster delivery of your content. This can shave multiple seconds off your load time especially for visitors who (used to be) far away from your 1 origin server. You can use WP Rocket’s CDN tutorial or StackPath’s CDN tutorial, but here’s exactly what to do.

Step 1: Sign up for StackPath (they have a 30-day trial):


Step 2: In the dashboard, click the CDN tab, then create a StackPath CDN Site:





Step 3: Copy CDN URL from StackPath and paste into WP Rocket’s “CDN CNAME(s)” field:


Step 4: In StackPath go to CDN → Cache Settings, then click “Purge Everything”:


Step 5: Exclude Files From CDN – ​there may be files being served by the CDN you would like to serve locally. Usually these files are parts of plugins designed to disregard cross domain load. To change this, simply add these files or directories into the “rejected files” area of WP Rocket (add one filedirectory per line) which you can use directives to locate WP directories.


  • {uploads_dir}/wpcf7_captcha/*
  • {uploads_dir}/imagerotator.swf
  • {plugins_dir}/wp-fb-autoconnect/facebook-platform/channel.html

Step 6: Run your site in GTmetrix and “content delivery network” should be green in YSlow.

CDN GTmetrix YSlow

If you expand items in GTmetrix and see it has to do with your CDN, contact StackPath’s support team who should be able to help you fix these. They have outstanding support.

Cookie Free Domains MaxCDN


11. Heartbeat

Instead of using the Heartbeat Control plugin, WP Rocket has it built-in.



12. Add-Ons


1. Google Tracking (Improve Browser Caching For Google Analytics) – you may see Google Analytics errors in your speed testing tool. Having WP Rocket host Google Analytics locally should fix these, specifically in GTmetrix under Page Speed → Leverage Browser Caching.

2. Facebook Pixel (Improve Browser Caching For Facebook Pixel) – same concept as previous option only for Facebook Pixel.

3. Cloudflare – sign up for Cloudflare, add your website, and Cloudflare will run a scan. You will eventually come to a page with your Cloudflare name servers and a link to your API key.


Change name servers in your hosting account to the ones Cloudflare assigned you:


Enter your Global API Key (found in your Cloudflare profile) into your cache plugin.

Cloudflare Global API Key


  • Global API Key – used to activate Cloudflare in WP Rocket.
  • Account Email – same email used in your Cloudflare account.
  • Domain –
  • Development Mode – use when making a lot of code changes to your site.
  • Optimal Settings – activates optimal Cloudflare settings: minification, aggressive caching, and deactivates Rocket Loader for better compatibility. Most common issue is Rocket Loader, but I also noticed it turns on email decoding which made my GTmetrix report worse, so I don’t use this (and instead configured Cloudflare in their dashboard).
  • Relative Protocol – sometimes if people download files from your site, there are no contents in them. Leaving this option OFF will prevent this from happening.
  • Clear All Cloudflare Cache Files – do this after you’re done configuring WP Rocket.

4. Synchronize Sucuri Cache – enable if using Sucuri. This will automatically clear Sucuri’s cache whenever you clear WP Rocket’s cache, keeping your content syncronized.

  • Sucuri Firewall API Key (For Plugin) – login to Sucuri here, click your site, go to the API tab, then copy your API Key (For Plugin) and paste it into WP Rocket.


13. Tools


Export Settings – export your settings to use on multiple sites.

Import Settings – import your pre-configured settings here.

Rollback – if you update to a new version of WP Rocket and it causes issues, this will fall back on the previous version.


14. FAQs / Documentation

I spent many hours digging through their documentation to make sure this tutorial uses the best WP Rocket settings, but they are extremely helpful if you haven’t checked them out.

WP Rocket Documentation

Tutorials I found the most helpful:

🚀 What's the best way to configure WP Rocket?

The most important steps are to enable everything you can in the file optimization tab, setup CDNs like Cloudflare + StackPath, disable WordPress heartbeat, and activate any services you're using in the Add-Ons tab.

🚀 How do I add a CDN with WP Rocket?

If using Cloudflare, you will simply change namesevers. If using an external CDN like StackPath or KeyCDN, you will copy/paste your CDN URL into WP Rocket. If using RocketCDN (powered by StackPath), sign up through the prompt in WP Rocket.

🚀 Why was WP Rocket rated #1 in most Facebook polls?

It comes with many features other cache plugins don't have: database cleanup, heartbeat control, option for multiple CDNs, lazy loading, local Analaytics, Facebook Pixel browser caching, and more. That's why WP Rocket usually yields the best results in GTmetrix.

🚀 Which image optimization plugin works best with WP Rocket?

Even though they recommend Imagify which is owned by WP Rocket, I use ShortPixel because I see virtually no quality loss and still get 100% for Optimize Images in GTmetrix.

🚀 What other speed optimization plugins do you need besides WP Rocket?

You still need an image optimization plugin like ShortPixel, font optimization (eg. OMGF), and I also recommend using Asset CleanUp or Perfmatters to selectively disable plugins.


15. SiteGround (#1 Host In Facebook Polls)

SiteGround is used by Yoast, myself, and recommended by WordPress. They are #1 in nearly every Facebook poll and give most people significant load time improvements especially if they were using mediocre hosts: GoDaddy, Bluehost, HostGator, InMotion, Dreamhost, EIG.


I use their semi-dedicated GoGeek plan which comes with 4x more server resources than shared hosting. Click through my pages to see how fast they load, check out my GTmetrix report, or see people who migrated and posted new load times. They also do free migrations.

DigitalOcean on Cloudways and Kinsta are also good and start at $10/month and $30/month. Cloudways is more for developers who don’t need cPanel, email hosting, or the support you get with SiteGround. Kinsta is basically what WP Engine used to be (pricey, but awesome). My entire blog is basically dedicated to helping people make their website load faster. I refuse to recommend $2/month hosting since it’s most people’s biggest regret when running a website.

How To Check If Your Hosting Is Slow
Run your site through Google PageSpeed Insights to see if reduce server response time is in your report. Google recommends it should be <200ms. Anything above 1 second is not good. You can also check your TTFB (time to first byte) in GTmetrix’s Timings tab or

Reduce Server Response Time

2019 Hosting Poll


Elementor Hosting Recommendations

July 2019 Hosting Recommendation











WP Friendly Hosting Poll


Favorite Hosting For Elementor

2018 Hosting Recommendations

WordPress Hosting Poll Sept 2018.png










Bluehost vs SiteGround

WordPress Web Host Poll

A few threads:

Godaddy To SiteGround Migration



SiteGround has 3 plans:

SiteGround WordPress Hosting

Higher plans include more server resources (#1 factor in the WordPress optimization guide). Here’s the full comparison chart, but GrowBig gives you about 2x more server resources than StartUp, and GoGeek is semi-dedicated hosting which gives you even more. GrowBig and up comes with a free migration, staging, advanced caching, and ability to host multiple websites. GoGeek comes with priority support. Their cloud hosting is quite the price jump at $80/month.

You can see this on their features page:


I use SiteGround because:

  1. My GTmetrixPingdom reports speak for themselves
  2. My pages load instantly (click through them if you want)
  3. Fast speed technology (PHP 7.3, NGINX, SG Optimizer, Cloudflare)
  4. Recommended by Yoast, WordPress, Ivica from WordPress Speed Up
  5. Free Let’s Encrypt SSL, easy to use cPanel, and features for eCommerce
  6. WordPress support is unbeatable even without GoGeek’s priority support
  7. GrowBig comes with staging, more storage, and more server resources (scroll down to “we allocate the resources you need” and hover over the server tab)
  8. GoGeek comes with even more server resources, storage, priority support
  9. Free migrations, migrator plugin, and a 30-day money back guarantee
  10. Plenty of praise on Reddit, Facebook conversations, Twitter, TrustPilot
  11. Tons of praise on Facebook: #1, #2, #3, #4, #5, #6, #7#8, #9, #10#11
  12. Many people already migrated and posted results on Twitter: #1, #2, #3, #4, #5, #6#7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, #32, #33, #34, #35, #36, #37

Affiliate Disclaimer – if you sign up for SiteGround using my affiliate link I will donate a good chunk at no cost to you. Each year I donate $3,000 to GoFundMe campaigns (2018 was to feed the hungry in Denver, 2017 was to Red Cross at Hurricane Harvey). Your support helps and I genuinely appreciate it. I try to make my reviews unbiased and backed by evidence in the form of Facebook polls, tweets, and real conversations. If you don’t want to use it, here’s a non-affiliate link to SiteGround. Either way, I suggest doing your research, see who Yoast uses, and results of people who migrated.


People usually migrate because their speed technology can cut load times in half:

Switching To SiteGround

SiteGround Load Time Migration

Bluehost to SiteGround GTmetrix

HostGator To SiteGround

SiteGround GTmetrix

SiteGround Google PageSpeed Insights

100 Perfect Score On SiteGround

SiteGround Genesis

Speed Delivered By SiteGround

SiteGround GTmetrix Report

Reduced Load Times With SiteGround

New SiteGround Response Times

HostGator To SiteGround Migration

SiteGround Response Times On Joomla

Switched To SiteGround Hosting

SiteGround Rocket Imagify Combo

Joomla GTmetrix On SiteGround

SiteGround PageSpeed Insights

SiteGround On Joomla

SiteGround Reduced Load Times

SiteGround Speedy Hosting

New Pingdom Results On SiteGround

New SiteGround Response Time

SiteGround Response Time Improvement


16. My Full WordPress Speed Guide (35+ Tips)

Watch My Video – it’s a 42 minute video, but I cover pretty much everything (timestamps in video description) and you should learn a ton of great information on WordPress site speed:

Image Optimization – you can run any page through GTmetrix and it will show you all unoptimized images but ONLY for that page – so start with the ones that appear on multiple pages. Image can be optimized 3 ways: serve scaled images (resizing images that are too large), specifying image dimensions (adding a width/height in the image’s HTML or CSS), and optimize images (losslessly compressing them using a plugin like Imagify). GTmetrix will tell you the correct dimensions for the first two if you expand them, and these are all high priority items.

Image Optimization

For more tips, see my complete guide to WordPress speed optimization.


17. Get Help From My WordPress Speed Optimizer

Still need help with your GTmetrix/Pingdom report? I’ve been working with Pronaya for 7 years (he’s the one who helped me get a <1s load time in Pingdom). You can hire him by creating a profile on and searching for username bdkamol. Here is his full WordPress speed portfolio. He’s $40/hour from Bangladesh (so there is a time change) and you can email him at He also has a perfect 5 star review on his profile. Serious inquiries only, and please don’t expect 100% scores if you’re using slow hosting, a bloated theme, and tons of heavy plugins. Please follow my full WordPress speed guide first.


Here are some reviews on his profile:


So… how are those Pingdom scores looking? Let me know in the comments or tell me if you’re stuck. You also paid for a premium plugin where they offer support (the last and final tab in the WP Rocket settings), so I would use that to your advantage too, or view their documentation.

Otherwise, nice job!

See Also: How I Got 100% Scores In GTmetrix

If you found this tutorial helpful, a share is always appreciated :)


View More Tutorials

Notify of
Oldest Most Voted
Inline Feedbacks
View all comments
nvn balakrishna

Thank You So Much, Thanks for informatic details configurations, I really enjoy your Post and in 4 minutes I would setup of my WP Rocket setting. Thanks again. Love You.


Nice tutorial sir,
6-7 plugins cannot do that only 1 plugin WP Rocket can do.

As you said you are using Cloudflare & Stackpath both at same time, is it possible or how to use both without changing the name server of cloudflare??
And which plan you are using for Stackpath??


Thanks for your great article on WP rocket.
I have installed it and its improved the site.
I am having issues with GTM, fb, and live chat (Gtmetric)
I am using Cloudflare, do you think installing maxcdn will assist with this issue?
Or do you have any suggestions to reduce these scripts issues?



Thank you so much for this extremely useful guide. I’ve just installed WP Rocket with Cloudflare and everything works great. Still lots of things to fix, but on a good track :)

Reply to  Tom Dupuis

Tom, just did all settings for WP Rocket on my website, could you please say something what else to do. Can not do anything else :(.


Hi Tom,

Have you a rough idea of how often the plug-in is updated?

For someone writing a small blog as a hobby it would be handy to keep costs to a minimum. Buying as a ‘one off’ I can probably justify but having to re-buy it every year probably not (unless I start getting some affiliate income to offset costs but that is some way off yet).



I personally use wp-rocket and it really is the best all-in-one caching plugin out there. I am definitely going to give a short pixel a try.


Would I do this same thing in WP Rocket for Cloudflare if I have it through Siteground?


Any recommendations on the conflicts/duplication with latest WP Rocket version and SG Optimizer 5.0? Any insights are appreciated.

Received the following error after updating to latest version of both WP Rocket and SG Optimizer: Their error note here:
“Important message from SG Optimizer plugin: We have detected that there is duplicate functionality with other plugins installed on your site: WP Rocket and have deactivated the following functions from our plugin: GZIP Compression, Browser Caching, HTML Minification, JavaScript Minification, CSS Minification. If you wish to enable them, please do that from the SG Optimizer config page.”


Hi Tom, Amazing content! Going to give this a whirl.
One bit of confusion… Are you suggesting to use stackpath AND cloudflare or choose one or the other?
– Would prefer not to change the nameservers for now.
Seems stackpath doesn’t need a change the NSs but cloudflare does?
Thank you!!!!!


Hi Tom Great article. I’ve been using WP Rocket for a couple years now and generally had my site well optimised. I just went back and did some tweaking to it so hopefully will help out a bit. I’m getting load times down to about 0.5 sec on average now. I have also been using StackPath for the past couple years and am running my site through their servers (i.e., changed my IP address to a StackPath IP address in the A record in my DNS settings). I think it provides a bit of extra protection via their WAF. On… Read more »

Reply to  Tom Dupuis

please can i hire you to do all of this task for me. I am running a user generated content site, and i would really love to give my users the ultimate experience.

Suanlian Tangpua


I am using Siteground the Grow Big plan and used the inbuilt SG super cacher. Do you think It’s still worth buying this WP Rocket? Will it make any difference on my site in which SG Super cacher is enabled.

Thank you


Hi Tom,

I’ve followed your guide and it seems like a clients site is much faster now.

But it seems you can’t click on the mobile menus anymore. You know when a site is auto resized and the top menu bar turns into three dashes on top of each other. That is not clickable anymore.

What part of WP Rocket would be potentially causing this do you think?



Hello Tom… First thanks a lot for such great detailed instructions and recommendations for WP Rocket plugin. I just installed it and achieved very good improvement of 655 ms loading time on Pingtom compare to 2,7 s before plugin installation. I have a question for seeing different load times of GTMetrix, WebPageScore and Pingtom. On GTMetrixm and WebPageScore I see 2,9 and 2.4 s fully loaded times though. What information is more accurate for speed testing and what time Google use to define how fast your site loads: load or fully load time? What time is more important for Google… Read more »


i used before wp fastest cache had 2 seconds loading i thought to try wp rocket, now it goes on 6 seconds or more… so i deactivated it…


I check your site via pingdom again and see what you have 800ms load time, not 200. This number change every time, but 1-2sec for pingdom is a great result.


Wow! I’m surprised there are not more comments. Fantastic guide and well written. I followed all of your steps and I’m so glad I found you. You helped me BIG time! I will be following you in the future, thanks Tom!


Great content Brother. Thanks for this! You rock!


This is a very valuable article. I may create a backlink to this post in my future posts.

Thank you, Tom.

Bella Ross

Hello Tom Dupuis, I’m very thankful to you for this great in detail post. I have followed every step to set up the WP Rocket. I have done it smoothly except the settings of CDN. I have registered Cloudflare account and configured everything you said. But one thing is still confusing me that is Enabling CDN option. I have enabled the Cloudflare addon and tweaked the settings as your instruction. But what about the CDN enable? Should I need to activate that option too from the CDN menu of WP Rocket? Or it doesn’t need to activate this option as… Read more »

Mani Teja

I have implemented same on my site but results are same

It’s almost too good to be true. But it works 110% I’ve installed it on several of my pages, and they all run super fast now. Now the rest of my pages also will get WP Rocket installed. Thanks for a super good guide, about how to setup WP Rocket.

Nice and clean article. I wish to know which is better combined with W3 total cache? is it either MaxCDN or Cloudflare

Thanks for a great and thorough tutorial.
Great work!


It looks like Cloudfare is only free for personal sites. I am working on a small-business startup site so don’t think I qualify for that. I am just feeling nickle and dimed with every step I make with wordpress…Is there an alternative to Cloudfare that is actually free?

Thanks for the tutorial though. I think I am getting there.


thank u so much for the article.
can I use maxcdn and cloudflare at the same time? I already have a max cdn pro account, but can I use both to improve the loading time?


Thanks for your reply, Tom! (BTW, I now tried to hit “reply” to your reply: didn’t work.) A few things/questions: * do your instructions on this page here reflect WP Rocket’s new user interface? See – or would things look different now & I as a newbie may get confused to what you are referring to? Just checking… * you wrote “Yes using both (Cloudflare + CDN (like MaxCDN or KeyCDN) will make your site even faster as you’ll be using more data centers which will further reduce the geographical distance. But… Cloudflare alone is usually sufficient.” FYI, here… Read more »


Newbie question: am on Siteground GoGeek and using their SuperCacher & the free Cloudflare plan that comes with it.
Now wanna add WP ROCKET as well…
1) if I carefully follow your plan above: still a point for WP Rockets $199 SETUP thingy?
(Which would include the $39 for 1 site…)
I am good at following instructions – but NOT an overly techy webmaster.
2) is there a point to use MAXCDN besides already using CLOUDFLARE?
What am I gaining from that, which Cloudflare doesn’t already do?

Thanks! :)


Thanks for the great tutorial

Got the same plugin versions and hosting on Siteground. Unfortunately i do have css issues as soon as i enable maxcdn in the WP-Rocket settings. Even if i set MaxCDN only to serve images.

Site speed is also everything else then fast since i moved to Siteground. While i know they do have some of the best hosting, it seems some settings or plugins do have issues and slow down.

Anyone else?

We’re using WP Rocket and AMP for WP – Accelerated Mobile Pages for WordPress. Do you recommend using WP Rocket’s mobile caching with AMP, or no?

Hey Tom, I’ve been experimenting with using different WordPress caching plugins in hopes of speeding up blog site loading time. One thing I’m noticing on Alexa is it will tell on you if your WordPress blog loads slow. As my search engine rank is steadily improving on a daily basis, Amazon’s Alexa keeps saying that the blog or maybe the website in overall loads very slow. Which specific WordPress plugin can I install would you recommend that can speed up the blog loading time so that my SEO can improve faster? Thanks in advance for your suggestion. :-)

Reply to  Tom Dupuis

Thanks for the good information Tom. I may look into that momentarily and see what good I can make of it. I’ll strive to keep you posted if I do make anything of it. :-)


Do you use WP Rocket and SG Optimizer at the same time? I use Siteground and currently running SG Optimizer. Any reason to use both?

Best hosting support in the world BTW – Go Siteground!

Reply to  Tom Dupuis

WP-Rocket says you can use all Caching layers on Siteground and this will auto disable the caching feature of WP-Rocket leaving only the other options running.


i still cant remove query strings

thanks so much for this tutorial as i can always count on your expertise when it comes to managing wordpress

good luck how can i contact with you ?

Thank You So Much, Thanks for informatic details configurations, I really enjoy your Post and in 4 minutes I would setup of my WP Rocket setting. Thanks again. Love You.

Hi, I’m confused, when I use the Critical Path CSS generator it has two results boxes. Do I copy and paste from the top or the bottom one? Critical Path CSS or Load combined CSS file after page load?


Tom – Thank you for putting this in-depth, and easy to follow guide together. I used it on, and I went from having Page Speed scores in the 30-40s, and F’s across the board almost every where else, to being up in the high 70s, low 80s, and looking at green A’s across the board everywhere else.

Speed is significantly better in both mobile, and desktop applications, and using this guide helped me think about other ways to improve performance across my site.

Did WPRocket pull their critical render path css out from the platform? I don’t see it in there anymore

Dhaval Kenia

Can you tell me what are the analytics with Maxcdn and Cloudflare?

How much cached data Maxcdn/CF analytics show they are taking care of? I am trying to debug this.

Hello Tom,

Thanks for the detailed and step by step walk through, I did as you adviced and it came very well as a final result.

Want to ask one question, If i use cloudflare and maxcdn together, does my site speed will improve dramatically?

Means now my site loads at 0.88 ( i am in a shared hosting, India server), can it goes down to some thing like 0.5 or 0.4.

Please suggest

Tommie Secher
Reply to  Tom Dupuis

MaxCDN doesn’t have a free trial??

Aima Khan

I have follow the instruction of Rocket settings in the same way, and it helps to improve the speed of my website upto 99%.

Reply to  Tom Dupuis

I am new, i start to open store and need preferences for homepage title,i feel very difficult, but i funded nice guys, hope i lear ,i getting more clear what to need .Thank you.

hi tom Do you have a solution to this problem:
Prioritize visible content
Your page requires additional network round trips to render the above-the-fold content. For best performance, reduce the amount of HTML needed to render above-the-fold content.

You say to only use “‘create a caching file for mobile visitors’ if you are NOT using a plugin to create a mobile site (eg. free version of WP Touch).”

Is using an AMP plugin considered using a plugin to create a mobile site? My understanding is it’s just rendering a more mobile-friendly format, not creating the mobile site, but I know just enough to be dangerous.

Why maxcdn when cloudflare can do the CDN job?

Tommie Secher
Reply to  Tom Dupuis

Did you deactivate Supercacher? The support team at SiteGround claims that it is not compatible with WP Rocket?

Tom, thank you for the article. I do have a question. How far does the CloudFlare integration go? I know I have DNS records that were provided to me from CloudFlare, but I have not any DNS changes. I did however add my email (from CloudFlare) as well an API with the configuration of WP Rocket and it seems to act funny. To be more specific, I had to deactivate CloudFlare in WP Rocket because of my website links would work….a user couldn’t get past the homepage. I also noted that WP Rocket requests a ZONE ID? When i celar… Read more »

Thank You So Much, Thanks for informatic details configurations, I really enjoy your Post and in 4 minutes I would setup of my WP Rocket setting. Thanks again. Love You.

Sathvik Gubba

Thanks a lot man I’m pretty much sure your website is a fantastic website your tutorial helped me a lot I went from 42 to 75 in page insights by this and I did some stuff my own to make my website to score 100 anyways thanks a ton man God bless you

Thank you soo much for this! Tom, you made my day!

Tom, Great post on ideas, documentation and tools to speed up your wordpress website. We actually went through a lot of the same trials and testing and also found that WP Rocket was one of the best, if not the best caching plugin to use. We use it in conjunction with Imagify to optimize the images and help with speed load times. I analyzed your scores with Pingdom, GTMetrix & Google Page Insights, all checked out with positive results. I was most impressed with Pingdom and GTMetrix and your load time on Pingdom was coming in at .555 to .60… Read more »

I am Unable to download the pre configured setting…Please recheck the link and let me know !


thanks Tom, Awesome stuff.

tom i have instaled wp rocket also upgrade my host and cdn but i want to ask , but in chase my speed just in 2.6s also i want to ask ,is live chat web plugin affect in speed ? in chase i using tawk to

Tommie Secher
Reply to  Tom Dupuis

Or try to use it less on very important pages – like your index page ;)

That is perfectly fine and detailed information. but you have provided the setting for the plugin, the download link is not working anymore, please upload once again for the new version 2.10.3

I can’t remove “Remove query strings from static resources” I marked from advanced options. But after testing through Pingdom it shows Grade E. What should I do?


very usefull information,


Thank you! I found this post incredibly helpful for optimising WP Rocket

Thanks for the great article!


Thank you for this tutorial, I followed your step by step instruction to optimize my blog but it still doesn’t load fast.

Thanks for writing this post. I follow your instruction. Installed WP Rocket. I try to use MaxCDN. However, as I lives in Hong Kong, the cost of adding a site in HK is very high. Eventually, I try KeyCDN. After installation, the test result is not noticable. I use GTMetrix and compares (1) WP Rocket activated without CDN activated, (2) WP Rocket deactivated, (3) WP Rocket activated and CDN activated. The results are shown based on five categories: PageSpeed Grade YSlow Grade Fully Loaded time Total page size Total # of requests (1) WP Rocket activated without CDN activated: B… Read more »

Hi Tom,

Thanks for the in depth article on WP Rocket. I just started using WP Rocket a few days ago and I could see right away that it works really good. I have my website hosted with WP Engine and my package includes a Max CDN also. All I had to do is uncheck the box for JS on the basic setting page due to the fact some of my quoting forms disappeared. Everything else works fine on the plug-in. All the information you included in this article was great, thanks a million!

Awesome! Thanks man. This guide really helped my site “”

There seems to be issues with the preconfigured file you have for download. Can you share it again?


has anybody the same problem like me? I have installed the app and configured my site with the Tom’s pre settings for wp rocket and I have on the site trouble to display with images and other sections. What can be wrong in the pre setting or on my site. I have divi theme.

Hi Tom.

Thanks a lot for sharing your information :). I tried to download your pre-configured WP Rocket settings but it seems that the file is corrupted :(…

Could you inform me, please, if you generate an other release ;)?





Hi Tom,
Thank for this detailed tutorial!
what do I need to modify in these settings if I’m using SuperCacher on SiteGround?

Oh great it is an interesting plugin glad i found it.
Thank for this amazing settings which really helped me setting up in my website.

Hello i am not able to add Globle API key as it showing Your CloudFlare credentials are invalid even though i entered the correct email and API Key,now what to do i already added domain and every details in cloudflare.

Daniel Muvd

i installed clean my data base destroy my website i have a huge problem now thanks to wp rocket.

What settings within Cloudflare itself do you have activated?
Mainly with the following:
– Auto Minify
– Polish
– Mirage
-Rocket Loader
And do any of these interfere with Siteground’s Super Cacher or WP Rocket?

Yup really number one plugin.
Installed tomorrow and i can see the change in speed.


The speed difference is noted, but what other reasons make this plugin better, if any? Is it ease of use, better options that aren’t offered in others, or what? Thanks.

Really explain wonderful’ve liked very much .. and found him exactly what I want .. thank you my friend.

I think a major problem is I can’t seem to configure the free cloud flare CDN without the site getting weird. I did email Pronaya yesterday haven’t heard back yet.

Thanks for the detailed instructions. I tried going by your steps I got the speed up and then it went from bad to worse. I seem to be going around in circles. I am going to get in touch with Pronaya hope he can help. Or Tom do you have any advice.

Hello, do you have to change your name servers if you want to use cloud flare? Or does wp take care of that as well?

Can you please share your WP Rocket settings..Bcoz, it’s quite difficult to work with it and I’m not able to speed up my site ?


Hi! Thank you for the great article! What I don’t understand is why you use cloudflare AND maxcdn?! In my (still very limited) understanding cloudflare is a cdn? What additional service/advantage would I benefit from using both?

Right now I use WP Rocket and cloudflare and still have load times around 5 sec, so I’m very interested ;-)

Thank you and all the best

Hi Tom, Great read! Do have a question about something that isn’t clear to me: Using Cloudflare and WP-Rocket together; does this bring -anything at all- in regards to -significant- speed improvements? I already use Cloudflare and am considering WP-Rocket but have doubts if it is worth the extra investment. I have read at the WP-Rocket site that Cloudflare and WP-Rocket basically do the same/similar things but WP-Rocket just has one extra thing called concatenation (combining files in little groups). Does this really make a big difference? I’m getting more and more doubtful about this, especially when even WP-Rocket themselves… Read more »

Great article. Much appreciated!

Just wondering, WP Rocket + CloudFlare + MaxCDN gives you a 0.3s load time.
What load time does only WP Rocket + CloudFlare give you?

Also, CloudFlare has a 102 data center global footprint. Would that mean that visitors will get pretty much the same fast load times (e.g. less than 1 second) when using WP Rocket + CloudFlare no matter where they are on the planet since they would likely always be near a CloudFlare data center?

Hi Tom,

I bet there is many people reading this article during this week since there was an update for W3TC and also YOAST SEO. This caused one of my sites to crash with a 500 error when having these two active, I first thought it was Yoast but after testing with all plugins I was able to determine that W3 total was the issue. After this, I learned not to update plugins so quickly when they release a new version.

Thanks so much for putting this resource together, Tom.

We, too, are bullish on pushing the envelope in terms of speed, security, and any other kind of incremental optimizations we can implement for our own businesses and our customers.

All of these little things really do add up over time. And it’s good to know that I can come back to your site to stay up to date on the latest goings on (e.g. AMP).

Thanks again,
Vic – Founder,


Thanks for this excellent comparison of Caching-Plugins for WordPress. I agree that WP-Rocket is the most capable one. What I do not like is their licensing policy. There is no way to try it out and you have decide right away, if you buy a license or go with a free alternative instead. I gladly came along these instructions on how to disable the license check of WP-Rocket and thus have the option to try before I buy: These instructions work and I would not recommend to anyone to download a nulled version from the web – just do… Read more »

Can you please share your WP Rocket settings..Bcoz, it’s quite difficult to work with it and I’m not able to speed up my site ?
Hosting: GoDaddy
Theme: Optimized Speed theme by MyThemeShop.

“Cloudflare is a free service that improves both your speed and security. You should do this.”

Always great to hear that. Thanks for the great write-up!

Thank you for the detail review. I want use your coupon code to sign up at max cdn.

Reply to  Tom Dupuis

Thank you for your response.

Discount 25% just for the first month?

Or if we subcribe yearly get 25% off ?

Wow, Thanks for the detailed review and Complete guide on WP rocket. Once again thanks for sharing WP rocket settings that I asked you in previous comment section.