Choosing the best CDN for WordPress is harder than choosing one for a static site, because WordPress is not static. Every page view normally runs PHP and database queries on your server, and many visitors — logged-in members, shoppers with items in a cart — see pages that differ from everyone else’s. A CDN can help in two quite different ways, and the services people recommend for WordPress do different ones: some only serve your images, CSS, and JavaScript from nearby locations, while others cache the finished HTML page at the edge so your server is barely involved. Which you need depends on your site, and the wrong choice can either leave most of the speed on the table or, worse, show one visitor another visitor’s personalized page. This guide explains the two jobs, the logged-in and WooCommerce traps, and how eight options compare, using what each one publishes about itself.
If cost is your main constraint, our budget CDN guide and pricing comparison cover the money side. Here we focus on how each option actually behaves with WordPress.
A WordPress CDN does one of two very different jobs

By default, a WordPress page is built on demand: the server runs PHP, queries the database, and assembles HTML for each request. A CDN can sit in front of that in two ways, and most confusion in this topic comes from treating them as one.
| Approach | What the CDN stores | How it connects | Main risk |
|---|---|---|---|
| Static-asset CDN | Images, CSS, JavaScript, fonts | Usually a plugin rewrites asset URLs to a CDN hostname | Your server still builds every HTML page |
| Full-page (HTML) edge caching | The rendered page, plus assets | DNS proxy or an integration, often with a plugin to purge on publish | Personalized pages must be bypassed correctly |
| Host-bundled CDN | Varies by host | Usually a toggle in the hosting dashboard | Tied to the host; less portable |
An analogy helps. Think of your site as a newspaper printed at headquarters every time someone asks for a copy. A static-asset CDN puts the photographs in neighborhood shops, which speeds up the pictures, but the front page still has to be printed at headquarters and shipped each time. Full-page edge caching puts the printed front page itself in the shops, so most readers never trigger a print run at all. The second is much faster for pages that are the same for everyone, and much riskier for pages that are not — which is the subject of the next section.
Why logged-in users and WooCommerce change the answer

WordPress and WooCommerce set cookies that mark a visitor as special: logged-in users, comment authors, and shoppers with a cart or session. Pages served to those visitors can contain their name, their cart, or their account details. A CDN that caches HTML must therefore be told when not to.
The HTTP caching standard explains why this is not automatic. RFC 9111 notes that a cookie on a response does not by itself stop that response being cached and reused for other requests, and that servers wanting control should send explicit Cache-Control directives. A response marked private tells shared caches, which include CDNs, not to store it. If neither the origin nor the CDN rules mark a page as personal, whether it gets cached and reused depends on how that cache is configured, which is not something to leave to chance.
This is why WordPress-aware products matter. Cloudflare’s own announcement of Automatic Platform Optimization says it bypasses the cache for the standard WordPress and WooCommerce cookies of authenticated users, and works with the WordPress plugin to refresh cached pages when content changes. A hand-written “cache everything” rule does not carry that logic on its own, so it needs explicit bypass rules for login and cart cookies. WooCommerce’s developer documentation is direct about the stakes: the Cart, Checkout, and My Account pages should not be cached, and sessions and cookies need excluding as well.
The practical consequence shapes the whole decision. HTML edge caching helps anonymous traffic. A site where most visitors are logged in — a membership site, a course platform, a forum — will see little HTML caching benefit and mostly gains from serving static assets through a CDN. A store can benefit on catalog and content pages, but only if cart, checkout, and account paths and cookies are excluded and tested.
Three ways a WordPress site connects to a CDN

- Plugin plus a pull zone — you create a CDN zone that pulls files from your site, and a plugin rewrites asset URLs to the CDN hostname. It is simple, leaves your DNS alone, and serves static assets. Bunny’s, KeyCDN’s, and 5centsCDN’s plugins work this way, as does the common route of pairing WP Rocket or W3 Total Cache with a CDN hostname.
- DNS-level proxy — you point your domain at the CDN, which proxies the whole site. This is how Cloudflare is normally used, and it is what makes HTML edge caching possible, because every request already passes through the CDN. It gives more power and more responsibility.
- Host-bundled toggle — many managed hosts include a CDN you enable from their dashboard. Kinsta, for example, says its CDN and edge caching run on Cloudflare’s network and are included with its plans. If your host bundles one, test it before adding a second CDN layer in front, because two layers caching the same site can conflict.
Keep your caching plugin even with a CDN. They do different work: a page-caching plugin avoids rebuilding pages on your own server, while the CDN moves content closer to visitors. Most setups use both, with purges coordinated between them.
How the leading CDNs compare for WordPress in 2026
The options below are the ones WordPress site owners most often evaluate. They are grouped by how they work with WordPress and listed alphabetically within each group, so the order implies no ranking. Everything stated comes from each provider’s own pages or plugin listing, which are linked, and none of it replaces testing on your own site.
Group 1: WordPress-aware edge caching of the HTML page
Cloudflare — APO caches the page itself
On its own, Cloudflare’s CDN caches static assets. Its WordPress plugin listing describes Automatic Platform Optimization as intelligent HTML caching with automatic purge on content updates, priced as a $5 add-on on the Free plan and included on Pro. Cloudflare’s engineering write-up lists the bypass conditions, including WordPress-specific cookies and logged-in users. It does not accelerate logged-in traffic by design. Best fit: publicly read sites, from blogs to catalog-style stores, that want HTML at the edge.
QUIC.cloud — LiteSpeed’s CDN for the whole page
QUIC.cloud is the CDN companion to the LiteSpeed Cache plugin. Its own site says it caches the entire WordPress site at the CDN level, including the dynamic HTML page. The plugin listing explains that LiteSpeed-exclusive features need a LiteSpeed server or QUIC.cloud, which is what lets sites on NGINX or Apache use them, and that some QUIC.cloud services require payment above certain usage levels. Best fit: sites already built around LiteSpeed Cache, after checking current free-tier limits.
Group 2: static-asset CDNs that plug in through a plugin or pull zone
5centsCDN — a straightforward pull-zone plugin
5centsCDN’s WordPress plugin replaces static links with CDN links, sets a custom CDN hostname, and purges everything, selected files, a post, or a page; its listing also shows a whole-site CNAME mode. Its published pages do not describe WordPress-aware HTML caching or cookie bypass for logged-in and cart traffic, so verify that before using whole-site mode. Reach follows its network tiers: Standard at 11 PoPs in North America and Europe, Enterprise at 16 cities across four continents. Best fit: mostly North American or European audiences wanting a simple asset CDN.
Bunny.net — official plugin with optional extras
Bunny’s WordPress plugin docs describe rewriting static content links to its CDN, plus optional extras: an image optimizer, media offloading to Bunny Storage, Bunny Stream video, and DNS-level acceleration with Bunny Shield for WAF and DDoS protection. It also documents setups with WP Rocket and W3 Total Cache, and the plugin lists minimum WordPress and PHP versions, so check compatibility first. Best fit: sites wanting an asset CDN and media offloading from one vendor.
Jetpack Site Accelerator — free, but narrow
Site Accelerator comes with the Jetpack plugin and serves images through an image CDN plus a limited set of static files. Jetpack’s support page is explicit that the asset side covers only files from WordPress core, Jetpack, and WooCommerce, and that theme and plugin files were never served; it may only be used by Jetpack-connected sites. Jetpack’s performance guide points to Jetpack Boost or WP Super Cache for full-page caching. Best fit: image-heavy blogs wanting a zero-configuration win, accepting the narrow scope.
KeyCDN — simple asset delivery through CDN Enabler
KeyCDN’s free CDN Enabler plugin rewrites URLs for CSS, JavaScript, and images to a CDN, supports include and exclude rules, multisite, and REST API output, and can purge the CDN when a KeyCDN account is connected. Its listing says it works with KeyCDN’s companion Cache Enabler page-caching plugin. It is an asset CDN rather than an HTML cache; its pay-as-you-go model is covered in our budget guide. Best fit: smaller sites wanting straightforward asset delivery with clear URL rules.
RocketCDN — now Bunny-powered, bundled with WP Rocket
RocketCDN is WP Rocket’s own CDN service, integrated into its plugin. Many roundups still describe it as StackPath-powered, which is out of date: WP Rocket announced that it moved to Bunny CDN after StackPath announced it was shutting down its service. The underlying footprint is therefore Bunny’s, and the Bunny entry above describes what that network offers. Best fit: WP Rocket users who want one-click setup and accept that the network belongs to a partner.
Group 3: a general-purpose CDN you configure yourself
Amazon CloudFront — powerful, but you own the WordPress logic
CloudFront is not WordPress-aware out of the box. AWS’s WordPress best-practices guidance is largely about configuration: forward only the cookies that change WordPress’s output, such as the wordpress_*, wp-settings-*, and comment_* families, and handle query strings deliberately. A common plugin route is offloading media to S3 and serving it through CloudFront, as WP Offload Media documents. Best fit: sites already on AWS, or with media offloaded to S3, whose team is comfortable owning the cache rules.
The table summarizes how each option works with WordPress, not a ranking. Capabilities change, so verify each row against the provider’s current pages.
| Option | How it connects | HTML at the edge? | What to verify |
|---|---|---|---|
| Cloudflare | DNS proxy; APO add-on | Yes, with APO | Bypass for logged-in and cart cookies |
| QUIC.cloud | LiteSpeed Cache integration | Yes | Free-tier limits; LiteSpeed-only features |
| 5centsCDN | Plugin + pull zone; CNAME option | Bypass rules not described | Cookie bypass; which tier covers your audience |
| Bunny.net | Plugin + pull zone; optional DNS | Not described in plugin docs | Plugin WordPress/PHP requirements |
| Jetpack Site Accelerator | Built into Jetpack | No | Scope: core, Jetpack, WooCommerce assets only |
| KeyCDN | CDN Enabler plugin | No | Asset-only; purge connection |
| RocketCDN | Via WP Rocket | Not described | Underlying network is Bunny’s |
| Amazon CloudFront | Distribution you configure | Via rules you configure | Cookie and query-string forwarding |
Sources: each provider’s own pages and plugin listings, linked above. “Not described” means the provider’s published pages do not describe it, not that it is impossible. Verify current behavior before relying on any row.
Which approach fits which site
Match the CDN to what your site actually serves rather than to a ranked list:
- A blog or brochure site read mostly by anonymous visitors — HTML edge caching pays off most. Cloudflare with APO, or QUIC.cloud on a LiteSpeed stack, are the WordPress-aware options here.
- An image-heavy site on a budget — a static-asset CDN covers the heavy bytes. Jetpack Site Accelerator is the zero-effort start; Bunny or KeyCDN give more control. Our budget guide compares the cost side.
- A WooCommerce store — use a CDN for assets, add HTML edge caching only for catalog and content pages, and exclude cart, checkout, account, and cart cookies. Test the exclusions before launch rather than assuming a plugin handled them.
- A membership, course, or forum site — most traffic is logged in, so expect gains mainly from static assets and from good origin performance, not from HTML caching.
- A site already on AWS or with media on S3 — CloudFront fits naturally, provided someone owns the cookie-forwarding and cache rules.
- An international audience — check each option’s footprint in the countries your visitors are in, not its global total; our global reach guide explains how.
How to test a WordPress CDN before you trust it
A CDN that looks fine on the homepage can fail quietly on the pages that matter. A short test plan catches most problems:
- Check cache headers as an anonymous visitor — request key pages twice and confirm the second response reports a cache hit. A page that never hits is not being cached.
- Check that personal traffic bypasses — repeat the request with a logged-in cookie and with a cart cookie, and confirm those responses are not served from a shared cache. If they are, fix it before anything else.
- Test purge on publish — edit a post, then confirm anonymous visitors see the change quickly. Stale content after an update is the most common complaint.
- Exercise the WooCommerce flow end to end — add to cart, view the cart, check out, and open the account page, confirming each stays live and correct.
- Measure from your audience’s regions — compare time to first byte at the median and 95th percentile before and after, from the countries your visitors are in, separating cold and warm cache.
- Vet the plugin as you would any plugin — check its update history, WordPress and PHP compatibility, and public vulnerability databases such as Wordfence Intelligence or WPScan before installing a CDN plugin, since it runs inside your site.
- Avoid double caching — if your host, a plugin, and a CDN all cache HTML, confirm they purge in step, or visitors can see old pages.
Because CDN behavior changes with plugin updates, host changes, and traffic patterns, one-off testing is not enough for a site that matters. If you want to track how your delivery and cache behavior hold up across the regions your visitors are in, over time and from real vantage points, independent monitoring is what we do at CDNToolkit, and teams comparing WordPress delivery across CDNs can get in touch here.
The bottom line
There is no single best CDN for WordPress, because the right one depends on whether your pages are the same for everyone. For mostly public content, WordPress-aware HTML edge caching, through Cloudflare with APO or QUIC.cloud on LiteSpeed, delivers the largest gain. For image-heavy or budget sites, a static-asset CDN such as Bunny.net, KeyCDN, 5centsCDN, or Jetpack’s free accelerator covers the heaviest files with less risk. CloudFront suits teams already on AWS who will own the cache rules, and a host’s bundled CDN is worth testing before you add another layer. Whatever you choose, keep your caching plugin, exclude cart, checkout, account, and login traffic, and verify the exclusions with real requests. Match the tool to how your site behaves, then test it.
Frequently asked questions
Do I need a CDN for my WordPress site?
If your visitors are far from your server, a CDN usually helps, because it serves images, CSS, and JavaScript from nearby locations, and with HTML edge caching it can serve whole pages. If your visitors are all close to your host, the gain is smaller. Either way, a CDN complements rather than replaces a caching plugin and decent hosting.
What is the best free CDN for WordPress?
It depends on what you need. Cloudflare’s Free plan provides a CDN for static assets, Jetpack’s Site Accelerator is free with Jetpack but limited to images and files from WordPress core, Jetpack, and WooCommerce, and QUIC.cloud has a free tier with usage limits when used with LiteSpeed Cache. HTML edge caching on Cloudflare is the $5 APO add-on on the Free plan. Check each free tier’s limits against your traffic.
What is the difference between a CDN and a caching plugin?
A caching plugin stores pre-built pages on your own server so WordPress does not rebuild them on every request. A CDN stores copies in locations around the world so content travels a shorter distance to visitors. Most sites benefit from both, and they should purge in coordination so visitors do not see stale pages.
Does a CDN work with WooCommerce?
Yes, with care. WooCommerce’s own documentation says the Cart, Checkout, and My Account pages should be excluded from caches, along with session and cookie handling. A CDN can serve your product images and static files, and WordPress-aware HTML caching can cover catalog and content pages, but the dynamic paths and cart cookies must bypass the cache. Test the full purchase flow after enabling anything.
What is Cloudflare APO and is it worth it?
Automatic Platform Optimization is Cloudflare’s WordPress-specific HTML caching. According to Cloudflare’s plugin listing it is a $5 add-on on the Free plan and included with Pro, and it purges cached pages when you update content. It bypasses the cache for logged-in and WooCommerce cookies, so it helps anonymous traffic. It is most worthwhile for sites that are mostly read by logged-out visitors.
Is RocketCDN still powered by StackPath?
No. StackPath announced it was shutting down its service, and WP Rocket announced that RocketCDN moved to Bunny CDN. Many older roundups still describe it as StackPath-powered, so check the date of any article that does.
Will a CDN affect my WordPress SEO?
A CDN does not hurt SEO when set up correctly, and faster delivery can help the user experience. One practical point: images served from a CDN hostname should still be indexable on your own domain, so check how your SEO plugin writes image URLs in sitemaps and confirm in Google Search Console or an image search that your images remain indexed.