Your WordPress site lives on one server, in one city. Your visitors don’t. Someone in Sydney opening a store hosted in London waits for every image, stylesheet and script to cross the planet twice. A WordPress CDN fixes that by copying your files to servers spread around the world and handing each visitor the copy closest to them.
The hard part isn’t deciding whether to use a CDN. It’s picking the right one. Some CDN services for WordPress are free forever, some bill a cent per gigabyte, and some charge a flat fee. Some only cache images, while others cache whole pages, block attacks and convert images to WebP on the fly. And one provider many older lists still recommend no longer exists at all.
In this guide we rank the 10 best CDN for WordPress options for 2027 planning, using current list prices, real network sizes and the setup flow each one gives a WordPress or WooCommerce site owner. You’ll also learn what a CDN actually does, how to use a CDN in WordPress step by step, which free CDN for WordPress is genuinely free, and how to keep your cart and checkout from being cached by mistake.
What Is a CDN?
A CDN (content delivery network) is a group of servers, called points of presence or PoPs, placed in data centers around the world. When you connect your site to a CDN, those edge servers keep cached copies of your files. A visitor in Dhaka gets your logo from a nearby edge server instead of your origin server in Frankfurt or Texas.
Think of it like a chain of local warehouses. Instead of shipping every order from one factory, the factory stocks each warehouse once, and customers pick up from the closest one. Your origin server (your WordPress hosting) is the factory. The CDN edges are the warehouses.
For a WordPress content delivery network, that has four practical effects:
- Lower latency. Files travel a shorter physical distance, so they arrive sooner, especially for visitors on other continents.
- Less load on your server. The edge answers most requests, so your PHP workers and database are free for the requests that really need them, such as checkout.
- Lower bandwidth bills. Many hosts meter bandwidth. Offloading images and scripts to the CDN keeps you inside your plan.
- Extra protection. Most modern CDNs sit in front of your site and absorb DDoS floods and bad bots before they ever reach WordPress.
A CDN is not a replacement for good hosting or page caching. It is the outer layer of a speed stack: a page cache (like WP Rocket or LiteSpeed Cache) builds the HTML fast, an object cache such as Redis object cache speeds up database queries, and the CDN delivers the finished result worldwide.
Do You Need a CDN for WordPress? The Stats Say Yes
The web has already voted. According to W3Techs’ reverse proxy survey, Cloudflare alone now acts as the CDN for about a quarter of all websites, up from under 4% a decade ago. CDN usage has gone from a big-company luxury to a default setting for small sites.
But adoption is uneven. The HTTP Archive Web Almanac 2025 CDN chapter found that most third-party resources already flow through CDNs, while the main HTML document is usually still served straight from the origin. That HTML is exactly what WordPress generates with PHP, and it is the slowest part of most pages. This is why full-page CDN features like Cloudflare APO and QUIC.cloud matter so much for WordPress.
Distance is the other half of the story. Cloudways ran a simple GTmetrix test with an origin server in London and measured the same page with and without a CDN from five locations. Far-away visitors saw big drops in fully loaded time. Visitors in London itself saw a tiny slowdown, because the CDN added one extra hop for people already next to the server.
The takeaway: if almost all your visitors live in the same city as your server, a CDN mainly helps with security and server load. If your audience is spread across countries, or you sell internationally with WooCommerce, a CDN is one of the cheapest and fastest speed upgrades you can make.
3 Types of WordPress CDN (Pick the Type First)
Most WordPress CDN comparison posts throw every provider into one list. In practice, there are three different jobs a CDN can do, and the right choice depends on which job you need.
- Static asset CDN (pull zone). You keep your DNS as it is. A WordPress CDN plugin rewrites image, CSS and JS URLs to a CDN hostname such as
yoursite.b-cdn.net. The CDN pulls each file from your server on first request and caches it. HTML still comes from your host. - Full-page CDN (reverse proxy). You point your DNS to the CDN, so every request, including HTML, passes through the edge. With WordPress-aware rules, the edge can cache complete pages and return them without touching PHP. This gives the largest drop in time to first byte (TTFB) but needs correct bypass rules for logged-in users and WooCommerce carts.
- Image CDN. A specialist service that resizes, compresses and converts images to modern formats on the fly. If you haven’t optimized images yet, start with our guide to serving WebP images in WordPress, then decide whether an image CDN still adds value.
How We Tested and Ranked These WordPress CDN Providers
Each CDN on this list was scored against the same WordPress-focused checklist. We looked at the live pricing page, the official WordPress plugin or integration, the documented network size and the setup steps a typical site owner has to follow.
| Criterion | Weight | What we checked |
|---|---|---|
| Performance reach | 25% | Number and spread of PoPs, HTTP/3, Brotli, ability to cache HTML |
| WordPress integration | 20% | Official plugin, automatic cache purge on post update, URL rewriting |
| Price and value | 20% | Free tier, per-GB rates, minimums, surprise fees (requests, regions) |
| WooCommerce safety | 15% | Easy bypass for cart, checkout, account pages and session cookies |
| Security extras | 10% | DDoS protection, WAF, bot control, free SSL |
| Ease of setup | 10% | Time from sign-up to first cache HIT, quality of docs and support |
You can repeat the speed test yourself in ten minutes: test your homepage from three regions far from your host with a tool such as GTmetrix or WebPageTest, enable the CDN, purge caches, warm the cache by loading the page twice, then test again. Compare TTFB and fully loaded time, not just the overall score.
WordPress CDN Comparison Table
| CDN | Free plan | Starting price | Network | Caches HTML | Best for |
|---|---|---|---|---|---|
| Cloudflare | Yes, unmetered | Pro $20/mo (annual); APO $5/mo | 348 cities | Yes (APO) | Almost every WordPress site |
| Bunny.net | 14-day trial | $0.01/GB NA/EU, $1 min | 119 PoPs | Optional | Cheap, fast static delivery |
| KeyCDN | 14-day trial | $0.04/GB, $4 min | Global PoPs | No | Simple pay-per-GB |
| Sucuri | No | $9.99/mo (firewall) | Global firewall PoPs | Yes | Security-first sites |
| Jetpack CDN | Yes, free | $0 | WordPress.com network | No | Image-heavy blogs |
| RocketCDN | Limited (with WP Rocket) | $7.99/mo with WP Rocket | 100+ locations | No | Set-and-forget users |
| Fastly | 100 GB/mo | Usage-based | Global edge cloud | Yes (VCL) | Developers, high traffic |
| Gcore | 1 TB/mo | โฌ0.01/GB after 1 TB | 210+ PoPs | Configurable | Large files, global audiences |
| QUIC.cloud | Yes (US/EU nodes) | Per-domain plans | Global nodes on paid plans | Yes | LiteSpeed hosting |
| Amazon CloudFront | 1 TB/mo pay-as-you-go | Pro flat-rate $15/mo | 600+ PoPs | Configurable | AWS-hosted WordPress |
Prices are list prices in USD (Gcore in EUR) as published by each provider in late 2026. Always confirm on the pricing page before you buy, because CDN pricing changes more often than most hosting plans.
1. Cloudflare
Cloudflare is the default answer to “what is the best CDN for WordPress?” for a reason. Its free plan gives you a global CDN, managed DNS, universal SSL and unmetered DDoS protection with no bandwidth bill. Cloudflare’s own network page lists 348 cities, which puts an edge server close to almost any visitor you’ll ever have. Its 2025 Radar Year in Review also shows the scale it sees: tens of millions of HTTP requests every second, which is why its threat detection learns so quickly.
Cloudflare works as a reverse proxy. You change your domain’s nameservers to Cloudflare, and from then on every request passes through its network. By default it caches static files such as images, CSS, JavaScript and fonts. HTML is not cached on the free plan unless you add rules, because caching HTML blindly would break logins and carts.
That’s where Automatic Platform Optimization (APO) comes in. APO is Cloudflare’s WordPress-specific feature: it caches whole WordPress pages at the edge and purges them automatically when you update a post through the official Cloudflare plugin. Cloudflare reports a 72% TTFB improvement in its own APO testing. APO costs $5 per month on the free plan and is included with Pro and higher plans.
Key features
- Free plan with unmetered CDN bandwidth, DNS, SSL and DDoS protection
- APO full-page caching for WordPress, with cookie-aware bypass for logged-in users and WooCommerce sessions
- HTTP/3, Brotli compression and Early Hints
- Free managed WAF ruleset; full WAF and image optimization on Pro ($20/month billed yearly, $25 monthly)
- Official WordPress plugin for cache purging and APO
Pros and cons
- Pro: Best free CDN for WordPress, with security included
- Pro: Huge network and very fast DNS
- Con: Changing nameservers can feel scary for beginners, and DNS moves need care
- Con: A global Cloudflare outage takes your proxied site down with it
Best for: Bloggers, business sites and WooCommerce stores that want a free start with a clear upgrade path. If you run a store, pair Cloudflare with a solid origin from our list of fast WooCommerce hosting options so cache misses are quick too.
2. Bunny.net
Bunny.net (formerly BunnyCDN) has become the favorite paid CDN of WordPress developers because it is fast, cheap and transparent. The Standard network has 119 PoPs, and pricing is purely pay-as-you-go: $0.01 per GB in Europe and North America, $0.03 in Asia and Oceania, $0.045 in South America and $0.06 in the Middle East and Africa. The monthly minimum is just $1, and there are no per-request fees.
For WordPress, Bunny works as a pull zone. You create a pull zone pointing at your site, install the official bunny.net WordPress plugin (or use the CDN tab in WP Rocket, LiteSpeed Cache or W3 Total Cache), and your static files start loading from yourzone.b-cdn.net or a custom hostname like cdn.yoursite.com. No DNS change for your main domain is needed.
Bunny also sells add-ons that fit WordPress well. Bunny Optimizer ($9.50 per month per site) resizes images, converts them to WebP/AVIF and minifies CSS and JS at the edge. Bunny Storage lets you offload your media library so your server’s disk stays small, and Bunny Stream hosts video. There’s also a cheaper Volume network with 10 PoPs for very high bandwidth, such as large downloads.
Key features
- 119-PoP Standard network with region-based pricing from $0.01/GB
- Perma-Cache (keeps files in edge storage so they rarely hit your origin)
- Instant purge via API and plugin, free SSL, HTTP/2 and HTTP/3
- Optional image optimization, edge storage, video streaming and WAF (Bunny Shield)
- 14-day free trial without a credit card
Pros and cons
- Pro: One of the lowest per-GB prices from a premium-quality network
- Pro: Clean dashboard and real-time logs
- Con: No permanent free plan
- Con: Traffic to Africa, the Middle East and South America costs several times more
Best for: Site owners who want an affordable WordPress CDN with predictable, usage-based bills, and agencies managing many client sites from one account.
3. KeyCDN
KeyCDN is a Swiss CDN known for simple, honest pricing and a long history with WordPress. Its team built CDN Enabler, one of the most widely used lightweight WordPress CDN plugins, which rewrites your asset URLs to a KeyCDN pull zone in a couple of minutes.
Pricing is pay-as-you-go with no request charges: $0.04 per GB for the first 10 TB in North America and Europe, dropping to $0.03, $0.02 and finally $0.01 per GB as volume grows. Asia and Oceania start at $0.08 per GB, and Africa and Latin America at $0.10. There’s a $4 monthly minimum and a $49 minimum top-up, and your first three zones are included free.
KeyCDN supports HTTP/2, Brotli and GZIP, free Let’s Encrypt certificates, instant purge, origin shield and a solid real-time analytics dashboard. It also offers an Image Processing service that resizes and converts images through URL parameters.
Key features
- Pull and push zones, instant purge and a full REST API
- CDN Enabler plugin for one-field WordPress setup
- Free SSL, HTTP/2, Brotli and hotlink protection
- No per-request fees and a low $4/month minimum
- 14-day free trial
Pros and cons
- Pro: Very easy to understand pricing and setup
- Pro: Lightweight plugin that doesn’t bloat WordPress
- Con: Higher per-GB rates than Bunny.net or Gcore
- Con: Static files only; no full-page WordPress caching
Best for: Developers and small business sites that want a no-nonsense pay-per-GB CDN with a tiny plugin.
4. Sucuri
Sucuri is a security company first, and its CDN comes bundled inside its cloud Website Application Firewall (WAF). When you route your domain through Sucuri, every request is filtered for SQL injection, XSS, brute-force logins, bad bots and DDoS attacks before it reaches WordPress. The clean traffic is then cached and served from Sucuri’s global network.
You can’t buy Sucuri’s CDN by itself. The entry point is the Basic Firewall plan at $9.99 per month, and the full platform plans (firewall, CDN, monitoring and unlimited malware cleanups) start at around $199.99 per year. Every plan has unlimited bandwidth, and Sucuri offers a 30-day money-back guarantee.
Sucuri gives you four caching modes, from “minimal” (static files only) to “site caching” (HTML too), plus a free WordPress plugin to clear the firewall cache and harden your install. It pairs well with the tools in our roundup of WordPress security plugins, since the firewall stops attacks at the edge and the plugin watches what happens on the server.
Key features
- Cloud WAF with virtual patching for known plugin vulnerabilities
- Layer 3, 4 and 7 DDoS mitigation
- CDN with four caching levels and HTTP/2
- Malware scanning and hack cleanup on platform plans
- Unlimited bandwidth on every plan
Pros and cons
- Pro: Security, CDN and cleanup from one vendor
- Pro: Strong virtual patching for vulnerable plugins
- Con: Smaller CDN network than Cloudflare or Bunny.net
- Con: More expensive if you only need speed
Best for: Sites that have been hacked before, membership sites and stores that care more about blocking attacks than shaving the last 50 ms.
5. Jetpack CDN (Site Accelerator)
Jetpack’s Site Accelerator (formerly Photon) is the easiest free CDN for WordPress if you already use Jetpack. Turn on one toggle under Jetpack โบ Settings โบ Performance and your images start loading from WordPress.com’s global servers, automatically resized for smaller screens. It also serves static CSS and JavaScript that ship with WordPress core, Jetpack and WooCommerce.
There are clear limits, documented on Jetpack’s Site Accelerator support page. It does not serve your theme’s or other plugins’ CSS and JS, it does not handle audio or video files, and it has no manual cache invalidation. Your site also needs to be connected to a WordPress.com account. In short, it’s a free image CDN plus a small asset boost, not a complete WordPress CDN.
Key features
- Completely free, with no bandwidth cap or upsell for the CDN itself
- Automatic image resizing and optimization
- Serves core, Jetpack and WooCommerce static assets
- Works alongside Cloudflare without conflict
Pros and cons
- Pro: Zero cost and literally one click
- Pro: Great for image-heavy blogs on cheap hosting
- Con: Ignores theme and third-party plugin files
- Con: Requires Jetpack and a WordPress.com connection
Best for: Bloggers and photographers who want a free image CDN without touching DNS or paying anything.
6. RocketCDN
RocketCDN is a WordPress CDN plugin and service from the team behind WP Rocket, running on Bunny.net’s infrastructure. Its big selling point is a flat monthly price with unlimited bandwidth: $7.99 per month per domain if you have WP Rocket ($79 per year), or $8.99 per month as a standalone service. No per-GB math, no surprise bills after a viral post (fair-use rules still apply).
Setup is about as simple as a CDN gets. Inside WP Rocket, you open the CDN tab, subscribe, and RocketCDN applies optimized settings automatically: HTTPS, CORS headers for web fonts, long browser cache headers and HTTP/2. Newer WP Rocket licenses also include a limited free RocketCDN tier that accelerates three key pages from 10 edge locations, which is handy for testing before you pay.
If you’re still choosing a caching plugin, read our WP Rocket review first. RocketCDN makes the most sense when WP Rocket is already handling page caching and file optimization.
Key features
- Flat price with unlimited bandwidth
- 100+ edge locations (Bunny.net network)
- Automatic configuration inside WP Rocket
- Canonical headers set automatically to avoid duplicate-content issues
Pros and cons
- Pro: Predictable cost; ideal for traffic spikes
- Pro: No technical settings to learn
- Con: Static assets only; no full-page or security features
- Con: Per-domain pricing adds up for agencies with many low-traffic sites
Best for: WP Rocket users and non-technical site owners who want a flat-rate, set-and-forget WordPress CDN.
7. Fastly
Fastly is an edge cloud platform used by major publishers, marketplaces and streaming services. It’s known for two things: purging cached content almost instantly worldwide, and letting developers program the edge with VCL configuration or its Compute platform. For a busy news site where an updated headline must appear everywhere within seconds, that instant purge is a real advantage.
Fastly’s free developer tier now includes 100 GB of bandwidth and 1 million requests each month, plus a free allowance for its Image Optimizer. After that you pay per GB by region and per 10,000 requests. That request billing is important: a WordPress site with many small files can see request costs become a meaningful part of the bill, so model your traffic before you commit.
Fastly publishes a WordPress plugin that purges cached pages when content changes, and it can cache full HTML with proper rules for cookies. Expect to spend real time on configuration, though; this is not a click-and-go CDN for beginners.
Key features
- Near-instant global purge and surrogate-key (tag-based) invalidation
- Programmable edge with VCL and serverless Compute
- Image Optimizer with WebP/AVIF conversion
- Next-gen WAF, DDoS protection and real-time logging
- Free tier: 100 GB bandwidth and 1M requests per month
Pros and cons
- Pro: Enterprise-grade performance and control
- Pro: Perfect for fast-changing content
- Con: Steeper learning curve than any other CDN here
- Con: Request fees and regional rates make cost harder to predict
Best for: High-traffic publishers, headless WordPress builds and developer teams that need edge logic.
8. Gcore
Gcore is a Luxembourg-based edge provider that made one of the biggest pricing moves of the year. In September 2026 it replaced its Free, Start and Pro CDN plans with a single pay-as-you-go plan: every self-service account gets its full network of 210+ PoPs, and the first 1 TB of traffic each month is free. After that, traffic costs โฌ0.01 per GB up to 500 TB, falling further at higher volumes. No credit card is needed to start.
That makes Gcore one of the most generous free CDN for WordPress options for sites with heavy media, downloadable files or a worldwide audience. One terabyte is far more than most blogs and small stores use in a month. Gcore also includes edge image optimization with WebP and AVIF, a generous request allowance, free SSL, DDoS protection and optional WAF.
For WordPress, you create a CDN resource pointed at your site and plug the CDN hostname into a CDN plugin such as CDN Enabler, W3 Total Cache or the CDN tab of your caching plugin. Gcore also supports full-site acceleration if you point your DNS to it.
Key features
- 1 TB of CDN traffic free every month on the full network
- 210+ PoPs with one global price, no regional surcharge
- Edge image optimization (WebP/AVIF)
- DDoS protection, WAF and free DNS
Pros and cons
- Pro: Huge free allowance on the same network paying customers use
- Pro: Same price everywhere in the world
- Con: No dedicated official WordPress plugin; setup uses third-party CDN plugins
- Con: Dashboard has many enterprise options that can overwhelm beginners
Best for: Media-heavy WordPress sites, download sites and stores with customers across Asia, Africa or South America.
9. QUIC.cloud (Replaces StackPath)
StackPath was once a popular WordPress CDN, but it no longer operates (see the note above). In its slot we’ve ranked QUIC.cloud, the CDN built by LiteSpeed Technologies specifically for WordPress, which solves a problem most CDNs can’t: caching dynamic WordPress pages safely.
QUIC.cloud works hand in hand with the free LiteSpeed Cache plugin. The plugin tells the CDN exactly which pages are cacheable, which cookies mean “logged in” or “has items in cart”, and when to purge. That lets QUIC.cloud cache full HTML at the edge, not just images and scripts, while still serving personal content correctly. It’s strongest on LiteSpeed servers, which is a big reason it pairs so well with hosts covered in our Nginx vs LiteSpeed comparison.
QUIC.cloud also bundles WordPress-specific protection, including brute-force defense, XML-RPC restrictions and CDN-level CAPTCHA, plus online services for image optimization and critical CSS. Note that its billing changed on December 1, 2026, moving to per-domain plans. A free plan with unlimited bandwidth on a smaller set of US and EU nodes remains, while paid plans unlock the full global network. Check the QUIC.cloud CDN documentation for the latest plan details.
Key features
- Full-page caching of dynamic WordPress and WooCommerce pages
- Deep integration with the LiteSpeed Cache plugin, including auto purge
- WordPress-aware security: brute-force protection, XML-RPC control, CAPTCHA
- Image optimization and critical CSS generation services
- Free plan with unlimited bandwidth on US/EU nodes
Pros and cons
- Pro: True dynamic page caching built for WordPress
- Pro: Excellent value on LiteSpeed hosting
- Con: Free plan’s network is limited to North America and Europe
- Con: Works best with the LiteSpeed Cache plugin, so it’s less flexible for other stacks
Best for: WordPress and WooCommerce sites on LiteSpeed or OpenLiteSpeed hosting that already use LiteSpeed Cache.
10. Amazon CloudFront
Amazon CloudFront is the CDN of Amazon Web Services, with 600+ points of presence and deep integration with S3, EC2, Lightsail and AWS WAF. It has always been powerful, but its pay-as-you-go pricing was confusing for WordPress owners. That changed in November 2025, when AWS launched flat-rate CloudFront plans with no overage charges.
The flat-rate plans bundle the CDN with AWS WAF, DDoS protection, bot management, Route 53 DNS, edge compute and S3 storage credits. They come in four tiers: Free ($0 per month, 100 GB and 1 million requests), Pro ($15 per month, 50 TB and 10 million requests), Business ($200) and Premium ($1,000). You can still use classic pay-as-you-go billing instead, which includes a perpetual free tier of 1 TB of data transfer per month.
For WordPress, CloudFront is usually connected through W3 Total Cache, WP Offload Media (which moves your media library to S3 and serves it via CloudFront) or a custom CDN hostname in your caching plugin. Setup takes longer than Cloudflare or Bunny.net, but if your site already runs on AWS, it keeps everything in one bill and one console.
Key features
- 600+ PoPs on the AWS global network
- Flat-rate plans from $0 to $1,000/month with no overages
- 1 TB/month free tier on pay-as-you-go
- AWS WAF, Shield DDoS protection and Lambda@Edge / CloudFront Functions
Pros and cons
- Pro: Enterprise network with a real free tier
- Pro: Pro plan at $15/month covers a lot of traffic
- Con: AWS console is complex for beginners
- Con: No official one-click WordPress plugin
Best for: WordPress sites hosted on AWS, developers comfortable with the AWS console and businesses that need predictable, enterprise-grade delivery.
Check It Now ( Amazon CloudFront )
Free CDN for WordPress: What’s Actually Free?
“Free” means very different things across these CDN services for WordPress. Some are free forever with no traffic cap, some give you a monthly allowance, and some are free only for certain file types.
| Free CDN | What you get free | The catch |
|---|---|---|
| Cloudflare Free | Unmetered CDN, DNS, SSL, DDoS | HTML caching needs APO ($5/mo) or careful rules |
| Gcore | 1 TB traffic per month on 210+ PoPs | Pay โฌ0.01/GB beyond 1 TB |
| Amazon CloudFront | 1 TB/month (pay-as-you-go) or Free flat plan (100 GB) | AWS setup complexity |
| Fastly | 100 GB and 1M requests per month | Developer-oriented configuration |
| QUIC.cloud | Unlimited bandwidth | US/EU nodes only on the free plan |
| Jetpack Site Accelerator | Unlimited image and core-asset delivery | No theme/plugin assets, needs Jetpack |
| RocketCDN Free | CDN for 3 key pages | Requires a WP Rocket license |
For most small sites, the smartest free stack is Cloudflare Free in front of your site plus your caching plugin’s built-in optimizations. If your audience is global and media-heavy, add Gcore’s free terabyte for static files.
How Much Does a WordPress CDN Cost?
Affordable WordPress CDN options start at zero, and even premium networks stay cheap at small-site volumes. Here’s what 1 TB of monthly traffic from North America and Europe costs at each provider’s list price:
A typical blog with 50,000 monthly page views and 1.5 MB pages uses roughly 75 GB of CDN bandwidth. On Bunny.net that’s under a dollar; on KeyCDN it hits the $4 minimum. The bigger cost factors are add-ons (image optimization, WAF rules, video) and traffic to expensive regions, not the base CDN price.
How to Use a CDN in WordPress (Step by Step)
There are two ways to set up WordPress CDN integration. Choose the method that matches the type of CDN you picked.
Method 1: Full-site CDN via DNS (Cloudflare, Sucuri, QUIC.cloud)
- Create an account and add your domain. The CDN scans your existing DNS records.
- Check every DNS record. Make sure your mail (MX), subdomains and verification TXT records were imported correctly before you switch.
- Change your nameservers at your domain registrar (or add the A/CNAME records the CDN gives you, for Sucuri and QUIC.cloud).
- Set SSL to “Full (strict)” so traffic between the CDN and your server stays encrypted, and avoid “Flexible” mode, which causes redirect loops on WordPress.
- Install the provider’s WordPress plugin (Cloudflare, Sucuri Security or LiteSpeed Cache) so posts are purged automatically when you update them.
- Turn on full-page caching (APO or the equivalent) only after you’ve confirmed the bypass rules for logins and carts.
Method 2: Static CDN via a WordPress CDN plugin (Bunny.net, KeyCDN, Gcore, CloudFront, RocketCDN)
- Create a pull zone with your site URL as the origin. You’ll get a CDN hostname, such as
yoursite.b-cdn.net. - (Optional) Add a custom CDN hostname like
cdn.yoursite.comwith a CNAME record, and enable free SSL for it. - Paste the CDN URL into your plugin. WP Rocket, LiteSpeed Cache, W3 Total Cache, the bunny.net plugin and CDN Enabler all have a CDN field.
- Include
wp-contentandwp-includesand exclude.phpfiles. - Purge your page cache so the rewritten URLs appear in the HTML.
Before you send files to a CDN, make them as small as possible. Minified CSS and JS cache better and transfer faster; you can quickly test a stylesheet with our free CSS minifier to see how many kilobytes you’d save.
Verify the CDN is working
Load your site, open DevTools (F12) โบ Network, click an image or stylesheet and look at the response headers. A cache HIT header means the file came from the edge. You can also check from a terminal:
curl -sI https://yoursite.com/wp-content/themes/your-theme/style.css | grep -iE "cache|server|age"
# Cloudflare: cf-cache-status: HIT
# Bunny.net: cdn-cache: HIT
# CloudFront: x-cache: Hit from cloudfront
# QUIC.cloud: x-qc-cache: hit
# Sucuri: x-sucuri-cache: HIT
If you see MISS, reload once more. The first request fills the cache; the second should be a HIT. A consistent BYPASS or DYNAMIC means a rule, cookie or header is preventing caching.
CDN for WooCommerce: Cache Rules That Keep Carts Safe
A CDN for WooCommerce is great for product images and category pages, but caching the wrong page can show one customer’s cart to another. Whatever CDN you use, make sure these rules are in place:
- Never cache
/cart/,/checkout/and/my-account/(and their translated slugs) - Bypass the cache when these cookies exist:
woocommerce_items_in_cart,woocommerce_cart_hash,wp_woocommerce_session_*,wordpress_logged_in_* - Don’t cache URLs with
?add-to-cart=,?wc-ajax=or/wp-json/wc/ - Exclude
/wp-admin/and/wp-login.phpentirely - Purge product pages automatically when stock or price changes
- Keep geolocation-based pricing or currency switchers out of the edge cache, or vary the cache by cookie
Cloudflare APO and QUIC.cloud handle the common WooCommerce cookies automatically. With pull-zone CDNs this is less of a risk, because HTML never goes through the CDN. For the full store speed picture, including database cleanup, cart fragments and image sizes, follow our step-by-step WooCommerce speed guide.
Common WordPress CDN Problems and Fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Icons show as squares | Web fonts blocked by CORS | Add Access-Control-Allow-Origin header on the CDN zone |
| “Too many redirects” | Cloudflare SSL set to Flexible | Switch to Full (strict) and install SSL on your server |
| Changes don’t appear | Stale edge cache | Purge CDN and page cache, or use the provider’s plugin for auto purge |
| Mixed content warnings | CDN URL uses http:// | Set the CDN URL to https:// and enable SSL on the custom hostname |
| Logged-in users see cached pages | HTML cached without cookie bypass | Add bypass on wordpress_logged_in_* cookies |
| Site slower for local visitors | Extra hop for users near the origin | Normal and small; enable HTTP/3 and tiered caching |
| Images 404 on the CDN | Hotlink protection or wrong origin URL | Check the pull zone’s origin and allowed referrers |
Which WordPress CDN Should You Choose?
- Just starting or on a budget: Cloudflare Free. Add APO for $5 when you want full-page caching.
- Want the fastest affordable static CDN: Bunny.net.
- Want flat pricing and no settings: RocketCDN.
- Heavy media with a global audience: Gcore’s free terabyte, then pay-as-you-go.
- Hosting on LiteSpeed: QUIC.cloud with LiteSpeed Cache.
- Security is the priority: Sucuri, or Cloudflare Pro.
- Image-only boost for free: Jetpack Site Accelerator.
- Running on AWS: Amazon CloudFront flat-rate plans.
- Developer team with complex edge logic: Fastly.
- Plain pay-per-GB with a tiny plugin: KeyCDN.
Whatever you pick, start with one CDN, verify cache HITs, measure before and after from far-away regions, and only then layer on extras like image optimization or a second CDN for media.
Frequently Asked Questions
What is the best CDN for WordPress?
For most sites, Cloudflare is the best CDN for WordPress because its free plan includes a global CDN, DNS, SSL and DDoS protection, and APO adds full-page caching for $5 a month. Bunny.net is the best paid alternative for fast, low-cost static file delivery.
Is there a free CDN for WordPress?
Yes. Cloudflare Free, Jetpack Site Accelerator and QUIC.cloud’s free plan cost nothing. Gcore gives 1 TB of traffic free every month, Amazon CloudFront includes 1 TB per month on pay-as-you-go, and Fastly includes 100 GB per month.
Does a CDN make WordPress faster?
Yes, especially for visitors far from your server. A CDN shortens the distance files travel and reduces load on your hosting. Full-page CDNs that cache HTML also cut time to first byte. Visitors in the same region as your server see little difference.
Do I need a WordPress CDN plugin?
For pull-zone CDNs like Bunny.net, KeyCDN or Gcore, you need a plugin (or your caching plugin’s CDN tab) to rewrite asset URLs. For DNS-based CDNs like Cloudflare, a plugin isn’t required, but the official plugin adds automatic cache purging and APO.
Can I use Cloudflare and another CDN together?
Yes. A common setup is Cloudflare in front of the whole site for DNS and security, plus Bunny.net or Gcore for static files on a cdn. subdomain. Just avoid caching the same files in two layers with conflicting rules, and make sure purges reach both.
Is a CDN safe for WooCommerce?
Yes, as long as cart, checkout and account pages and WooCommerce session cookies bypass the cache. Pull-zone CDNs only serve static files, so they’re safe by default. Full-page CDNs like Cloudflare APO and QUIC.cloud handle WooCommerce cookies automatically.
What happened to StackPath and MaxCDN?
MaxCDN was folded into StackPath years ago, and StackPath shut down its CDN in November 2023 before closing the company entirely. Any plugin still pointing to a StackPath URL should be switched to another CDN.
How do I clear CDN cache in WordPress?
Use the purge button in your CDN plugin (Cloudflare, bunny.net, LiteSpeed Cache, WP Rocket) or in the provider’s dashboard. Always purge your WordPress page cache too, otherwise old HTML will keep pointing to old files.
Final Verdict
A WordPress CDN is one of the few speed upgrades that is cheap, quick to set up and helps every visitor outside your server’s region. Start with Cloudflare if you want a free, all-in-one option. Move to Bunny.net or Gcore when you want fast, low-cost delivery of images and files at scale. Choose QUIC.cloud on LiteSpeed hosting, Sucuri when security comes first, and CloudFront or Fastly when you need enterprise control.
Whichever WordPress CDN provider you choose, check that cache HITs are showing up, keep WooCommerce carts out of the cache, and measure again from far-away regions. Done right, your site will feel local to visitors anywhere in the world.

