New

50% off Shop Products & 50% off 1st Month of Retainer Packages. Terms apply*. Contact us to apply your discount.

Speed Up WordPress 2-4x with Cloudflare Cache Preloading

Last updated:

Home » Articles » Wordpress » Speed Up WordPress 2-4x with Cloudflare Cache Preloading

When someone visits your WordPress site, their browser normally fetches the page from your hosting server. If that server is in London and your visitor is in Sydney, there’s a noticeable delay.

Cache preloading solves this by storing copies of your pages on Cloudflare’s servers around the world. Visitors get served from the nearest location—often making pages load 2-4x faster.

This guide covers how to set it up, from free options to Cloudflare’s paid service.

How It Works (Simple Version)

Normally, Cloudflare only caches static files like images, CSS, and JavaScript. Your actual HTML pages still come from your server every time.

Cache preloading changes this by:

  1. Telling Cloudflare to also cache your HTML pages
  2. Pre-warming those caches so the first visitor doesn’t have to wait
  3. Automatically clearing the cache when you update content

The result: pages that used to take 2-3 seconds now load in under a second.

Option 1: Free Plugin Method (Super Page Cache)

Cost: Free
Works with: Free Cloudflare accounts
Difficulty: Moderate

The Super Page Cache for Cloudflare plugin is the most reliable free option. It uses Cloudflare’s modern Cache Rules (not outdated Page Rules) to cache your entire site.

Setup steps:

  1. Make sure your site is on Cloudflare first—your DNS should be pointing through Cloudflare (orange cloud icons in DNS settings)
  2. Install and activate Super Page Cache for Cloudflare from the WordPress plugin repository
  3. Go to your Cloudflare dashboard → My Profile → API Tokens
  4. Create a new API token (or use Global API Key for simplicity)
  5. In WordPress, go to Settings → Super Page Cache
  6. Enter your Cloudflare email and API key
  7. Click Enable Page Caching

The plugin automatically creates the necessary Cloudflare rules and handles cache purging when you update posts.

Option 2: Cloudflare APO (Easiest Paid Option)

Cost: $5/month (included free with Pro+ plans)
Works with: Any Cloudflare account
Difficulty: Easy

Cloudflare’s Automatic Platform Optimization (APO) for WordPress is their official solution. It’s the simplest option and handles everything automatically.

Setup steps:

  1. In your Cloudflare dashboard, go to Speed → Optimization → Content Optimization
  2. Find Automatic Platform Optimization for WordPress and enable it
  3. Install the official Cloudflare WordPress plugin
  4. Connect the plugin to your Cloudflare account
  5. Enable APO in the plugin settings

APO handles cache invalidation automatically when you publish or update content.

Option 3: Advanced Preloading (Global Coverage)

Cost: Free (plugin) + optional proxy costs
Works with: Sites needing global cache coverage
Difficulty: Advanced

Standard caching only warms the cache when someone visits. If your first visitor from Japan requests a page, they still get a slow response until the cache is populated for that region.

The Super Preloader for Cloudflare plugin solves this by proactively warming caches across multiple Cloudflare edge locations using a Worker script and optional rotating proxies.

This is overkill for most sites, but useful if you have a truly global audience and want every first visitor to get cached content.

How to Verify It’s Working

After setup, test that pages are actually being served from cache:

  1. Open a private/incognito browser window (important—logged-in users bypass cache)
  2. Visit your homepage
  3. Right-click → InspectNetwork tab
  4. Refresh the page
  5. Click on the first request (your page URL)
  6. Look in the Response Headers for cf-cache-status

What the values mean:

  • HIT — Page served from Cloudflare cache (what you want)
  • MISS — Cache was empty, fetched from your server (first request after cache clear)
  • DYNAMIC — Page isn’t being cached (something is misconfigured)
  • BYPASS — Cache intentionally skipped (logged-in users, cart pages, etc.)

You can also use tools like GTmetrix or WebPageTest from different locations to see real-world speed improvements.

Important Things to Know

Caching doesn’t work for logged-in users: If you’re logged into WordPress, WooCommerce, or any membership system, you’ll always get fresh pages from your server. This is intentional—you don’t want cached cart contents or admin pages.

Disable other page caching first: If you’re using WP Rocket, W3 Total Cache, or similar, temporarily disable their HTML caching to avoid conflicts. Static file caching (CSS, JS, images) can usually stay on.

Speed improvements vary by location: Visitors close to your server won’t see as much improvement. Visitors on the other side of the world will see dramatic differences.

Cache needs time to warm: After enabling caching or purging, the first visitor to each page still gets a slower response while the cache builds.

Which Option Should You Choose?

  • Just want it to work? → Cloudflare APO ($5/month)
  • Free and willing to configure? → Super Page Cache plugin
  • Global audience, need prewarmed cache everywhere? → Super Preloader

For most WordPress sites, either Super Page Cache (free) or APO ($5) will deliver excellent results. The difference in setup difficulty often makes the $5/month worth it.

Beyond caching, image optimization is another major factor in page speed. Make sure you’re using modern formats like WebP alongside your caching setup.

Become an expert website owner

Join our community of website professionals and learn how to achieve website success through our helpful newsletter.