Full-Page Edge Caching with Cloudflare: Options and Costs
Cloudflare caches your images, CSS and JavaScript out of the box, but not your pages. Every shop, category and product page still goes back to WordPress for its HTML until you tell Cloudflare it may store it. Once it does, a cached page comes from the Cloudflare data centre nearest the shopper, and your server never sees the request.
There are several ways to switch that on, from free to an Enterprise contract. This guide compares them, walks through the free route, and covers the part every option shares: shoppers with a basket and logged-in customers.
Prices and plan limits are from Cloudflare’s own pricing pages and documentation, as of November 2026. Cloudflare changes them, so check the dashboard before you buy.
Cloudflare cannot tell which parts of a page are personal. A product page can carry a basket count, a customer’s name, a member price or a security token, and Cloudflare sees only one block of HTML. If it stores the page for one shopper and serves it to the next, the next shopper gets the first one’s details.
So every edge option on this page does the same thing to stay safe: it sends any request carrying a WordPress login cookie or a WooCommerce basket cookie straight back to your server. Those visitors get no edge caching at all, and they’re the ones closest to buying.
The options compared
| Option | Cloudflare cost per month | What it caches | Shoppers with a basket and logged-in customers | Effort | Caveats |
|---|---|---|---|---|---|
| A Cache Rule you write | $0 on Free | HTML for every request your rule matches | Bypassed by the cookie conditions you add | About 15 minutes in the dashboard | You purge the cache yourself after edits; 10 Cache Rules on Free |
| Super Page Cache plugin | $0 on Free | HTML, through a Cache Rule the plugin creates and maintains | Bypassed by its cookie list, which includes wordpress and woocommerce_ | Install, connect a Cloudflare API token | Purges automatically on edits; one more plugin to keep updated |
| APO (Automatic Platform Optimization) | $5 add-on on Free, included on Pro, Business and Enterprise | HTML, kept for 30 days and purged by Cloudflare’s WordPress plugin | Bypassed by default: cookies starting wp-, wordpress or woocommerce_, among others, send them to WordPress. To cache them too, add the Cache Upgrader Kit | Install Cloudflare’s WordPress plugin and switch APO on | No multisite; most query strings bypass the cache; adding your own bypass cookies needs Business or Enterprise |
| A Cloudflare Worker | $0 for 100,000 requests a day; Workers Paid from $5 for 10 million requests, then $0.30 per million | Whatever your code decides | Whatever your code decides | You write and maintain JavaScript | Its Cache API stores per data centre and does not use Tiered Cache |
| Enterprise custom cache keys | Contract price | HTML, with the cache key split by cookie, header or query string | Can keep separate copies per cookie value, for example per currency | Set up with Cloudflare’s account team | A copy per cookie value is not a copy per shopper: a basket cookie is unique to each shopper |
For a WooCommerce store, the first three all end up in the same place: guests get edge-cached pages, and shoppers with a basket and logged-in customers go back to WordPress. No Cloudflare plan changes that on its own. If you want shoppers with a basket and logged-in customers cached too, you need the Cache Upgrader Kit.
The paid plans
| Plan | Price | What it adds for edge page caching |
|---|---|---|
| Free | $0 | Cache Rules (10), Smart Tiered Cache, purge by URL, hostname, tag or prefix. APO is a $5 add-on |
| Pro | $25 a month billed monthly, or $20 a month billed annually | APO included, 25 Cache Rules, minimum Edge Cache TTL of 1 hour (2 hours on Free) |
| Business | $250 a month billed monthly, or $200 a month billed annually | 50 Cache Rules, Edge Cache TTL down to 1 second, and a Bypass Cache on Cookie page rule that adds your own cookies to APO’s bypass list |
| Enterprise | Custom contract, billed annually | 300 Cache Rules, custom cache keys using query strings, headers, cookies and host, Regional Tiered Cache and custom tiered topologies |
Cache Reserve is a separate usage-billed add-on on any plan: $0.015 per GB stored per month, $4.50 per million writes and $0.36 per million reads. It keeps cached files in Cloudflare’s R2 storage, so they last longer than the ordinary edge cache, which evicts files nobody has asked for in a while.
Set up the free route
You have two ways to do this on the Free plan, and they create the same kind of rule.
With the Super Page Cache plugin
Super Page Cache (the plugin once called WP Cloudflare Super Page Cache, slug wp-cloudflare-page-cache) is maintained by Optimole, part of Themeisle. Version 5.3.10 came out on 4 November 2026 and it has more than 70,000 active installs, so yes, it still works.
It works by creating one Cloudflare Cache Rule that marks your pages as eligible for caching. Its conditions leave out /wp-admin, /wp-login, /my-account, /wp-json, /wc-api, sitemaps and robots.txt, and every request whose cookies contain wordpress, woocommerce_, comment_ or one of a few other plugin prefixes. WooCommerce’s Cart, Checkout and My Account pages go out with no-cache headers, so Cloudflare never stores them. When you edit a post or product it purges the pages affected.
- Turn off page caching in any other caching plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache). Their file optimisation can stay on.
- Install Super Page Cache from Plugins, Add New.
- Connect it to Cloudflare with an API token scoped to your zone, rather than your Global API Key.
- Switch on Cloudflare caching. The plugin creates its own rule, named so you know not to edit it by hand.
- Add any personal cookies your other plugins set to its excluded cookies (a currency switcher or a wishlist, for example).
- Test it: see Check it works.
You may remember the swcfpc=1 parameter on every internal link when you were logged in. That’s the plugin’s cache buster. It gave logged-in visitors a different URL, so they never matched the cached copy, back when Page Rules only offered Bypass Cache on Cookie on Business and above. Cache Rules can test cookies on every plan, so the plugin’s default setting, Remove Cache Buster, leaves the parameter off and bypasses on cookies instead. Its old Cloudflare Worker mode was removed in version 5.1.0.
With a Cache Rule you write yourself
If you’d rather not add a plugin, write the rule in the Cloudflare dashboard. Cache Rules are on every plan, and the cookie test works on Free.
- In the Cloudflare dashboard, open your domain, then Caching, then Cache Rules, and create a rule.
- Choose Custom filter expression, then Edit expression, and paste the expression below, with your own domain and your own Cart, Checkout and My Account paths.
- Under Cache eligibility, choose Eligible for cache.
- Under Edge TTL, choose Use cache-control header if present, use default Cloudflare caching behavior if not. Cloudflare then never stores a page WordPress marks
privateorno-store, or one that sets a cookie, and keeps everything else for 2 hours. - Deploy the rule, then under Caching, Tiered Cache, switch on Smart Tiered Cache. It’s free, and a page cached in one Cloudflare data centre can then fill another without a trip to your server.
(http.host eq "example.com"
and http.request.uri.query eq ""
and not http.request.uri.path contains "/wp-admin"
and not http.request.uri.path contains "/wp-login.php"
and not http.request.uri.path contains "/wp-json"
and not http.request.uri.path contains "/cart"
and not http.request.uri.path contains "/checkout"
and not http.request.uri.path contains "/my-account"
and not http.cookie contains "wordpress_"
and not http.cookie contains "woocommerce_"
and not http.cookie contains "wp_woocommerce_session_"
and not http.cookie contains "comment_author_")
The http.request.uri.query eq "" line keeps searches, filters and ?add-to-cart= links out of the cache. It also sends links with ?utm_source= or ?gclid= back to your server; leave it in until you know which parameters your store uses.
The rule has no idea when you edit a product, so a changed price can sit in the cache for up to 2 hours. Purge the URL after an edit (Caching, Configuration, Custom Purge), or use Super Page Cache, which purges for you.
Never add a rule that makes every page eligible for cache with no conditions. Cloudflare’s own documentation warns that it caches all HTML regardless of dynamic content, so one shopper’s basket, account page or checkout token can be served to everyone else.
When a paid plan is worth it
For caching pages, most stores need nothing above Free. The paid options earn their keep in a few cases:
- APO, for $5 a month on Free. You get Cloudflare’s own WordPress integration: pages kept for 30 days, purged within about 30 seconds of an edit by Cloudflare’s WordPress plugin, and common marketing parameters such as
utm_source,gclidandfbclidserved from the cache. Any other query string goes back to your server, so filtered shop pages aren’t cached. - Pro, at $20 to $25 a month. APO is included, so Pro costs $15 to $20 a month more than Free with APO. It’s worth it when you also want Pro’s other features, or more than 10 Cache Rules.
- Business, at $200 to $250 a month. For caching alone, the useful extras are adding your own cookies to APO’s bypass list and an Edge Cache TTL below an hour. Few stores need either.
- Enterprise. Custom cache keys can keep a separate copy of a page for each currency or country cookie, which no other plan can do. Some hosts include Cloudflare Enterprise in their plans, which is the cheapest way to get it.
A Worker is the route for a developer who needs logic no rule can express. For a WordPress store, Cache Rules cover what Workers were once used for here (bypassing on a cookie on the Free plan), so a Worker adds code to maintain and a bill per request for little gain.
Check it works
Open a private window, so you have no cookies, and load the same shop page twice. In your browser’s developer tools, look at the response headers of the page itself:
cf-cache-status: HITmeans Cloudflare served it from the edge.MISSmeans it was eligible, but this data centre didn’t have it yet. Load it again.DYNAMICmeans no rule made it eligible.BYPASSmeans a rule, a cookie or aSet-Cookieheader stopped it being stored.
With APO, cf-apo-via: cache confirms the APO cache answered. With Super Page Cache, x-wp-cf-super-cache-active: 1 means the plugin marked the page for Cloudflare.
Then add something to your basket and load the page again. Without the Cache Upgrader Kit you’ll see DYNAMIC or BYPASS, because the basket cookie sends you back to WordPress. That’s correct, and it’s the gap the next section is about.
Cache basket and logged-in pages at the edge too
Every option above stops at the same point: once a shopper adds to their basket or logs in, their cookies send every request back to WordPress, and the edge cache does nothing for them.
The Cache Upgrader Kit for WooCommerce removes that rule safely. It takes the personal content out of the shared page and fills each visitor’s own parts in after the page loads (prices where they differ, stock, the basket, an account menu). It also stops WooCommerce setting its basket cookies and renames the basket session cookie and WordPress’s login cookie, so none of them match the bypass rules above. Shop managers and administrators still carry a wordpress_no_cache cookie, so the wordpress_ condition keeps sending them to live pages. Cart, Checkout and My Account stay out of the cache.
The result is that whichever edge option you chose serves the same cached page to a shopper with a basket and to a logged-in customer as it does to a guest. Your server’s own page cache and Cloudflare’s edge both cache those pages, so the two layers add up.
On ArredoItaliano, the first store to run the kit, Cloudflare Enterprise sits in front of the host’s page cache. With an item in the basket, their pages come from the cache in about 0.03 s. Before the kit, with a basket, the same pages took 0.79 to 1.01 s. That’s one store’s time to first byte, measured from Greece on 16 November 2026, not a full page load, and your own figures depend on your cache and where your shoppers are.
Your AI agent runs the kit’s safety checks again on the live store before you switch caching on, through whatever serves it, Cloudflare included. If you add or change edge caching after going live, run the checks again: tell your agent “I’ve changed my Cloudflare caching, check caching is still safe.”
How the Kit Works explains the setup, the safety loop and going live in full.
Further reading
Written for Cache Upgrader for WooCommerce 1.7.17.
Comments