Super Page Cache for Cloudflare - Effective Cache Optimization Rivaling WP Rocket
Super Page Cache for Cloudflare is a completely free plugin with outstanding features that rivals WP Rocket. Before reading further, you can check out the results achieved when enabling Super Page Cache, enabling WP Rocket, and using Nginx caching from the server.
Instead of only caching static assets like images, CSS, and JavaScript files, you can use Cloudflare to cache your entire WordPress website. So, if you have mostly static content that doesn't change frequently, you can let Cloudflare cache your site! When combined with Cloudflare Cache Reserve, Cloudflare can serve as a secondary hosting provider, acting like your origin web host to achieve blazing-fast global speeds. Here is how to do it.
Step 1: Download the Super Page Cache for Cloudflare Plugin
Although it is possible to configure Cloudflare to cache your WordPress site manually, using a plugin covers all edge cases and allows you to access the uncached version of your site whenever you want. The best plugin for this is Super Page Cache for Cloudflare - formerly known as WP Cloudflare Page Cache. Download this plugin and go to its configuration screen under “Settings -> Super Page Cache for Cloudflare”.Step 2: Get Your Cloudflare Global API Key
This article does not cover creating a Cloudflare account, but you can easily sign up for a free account at www.cloudflare.com. The plugin needs your Global API Key to automatically manage the integration between your website and Cloudflare. To get the API key, log in to your Cloudflare dashboard, click the profile icon in the top-right corner, and click "My Profile" as shown here:Step 3: Enable Caching and Test That It Is Working
After completing the configuration and saving your settings, you can enable and disable Cloudflare caching for WordPress by toggling the orange buttons at the top of the settings screen as follows:Step 4: Configure Default Settings for Cloudflare WordPress Caching
The default settings for the Super Page Cache for Cloudflare plugin are quite solid. However, you can click on the “Cache” tab to further configure and fine-tune your experience. For example, when purging updated pages, I choose to purge only HTML pages—there is no need to reset the cache for all static files just because you edited a post. You can also configure Fallback Page Caching, which stores copies of your pages on your own server. This is similar to standard WordPress caching plugins like W3 Total Cache. Other advanced options include preloading purged pages configured according to your preferences.Verify That Cloudflare WordPress Page Caching Is Working
To check if Cloudflare is caching your WordPress pages, first load a page in your browser to “warm up” the cache. Then, open your browser's developer tools by pressing “Ctrl + Shift + C” and select the “Network” tab. When you refresh your page, it will display all the resources loaded by the browser. The first resource will be your page URL. Select it, and on the right-hand side, check the “Response Headers” as shown here:
Verify that Cloudflare Caching for WordPress is active
There should be a response header called “cf-cache-status” and its value should be “HIT” as shown above. This means Cloudflare is serving this page directly from its cache.