guides 6 min read

How to Set Up a CDN for WordPress: Free and Paid Options Compared

Complete guide to setting up a CDN for WordPress. Compare Cloudflare (free), Bunny CDN, QUIC.cloud, and KeyCDN. Step-by-step instructions for each option.

GetHost.One Team

A CDN (Content Delivery Network) stores copies of your site's static files on servers around the world, delivering them from the location nearest to each visitor. The result: faster load times, lower server load, and better global performance.

This guide walks through setting up the most popular CDN options for WordPress — including free and paid choices.

Do You Need a CDN?

Yes, if:

  • You have visitors from multiple geographic regions
  • Your site uses images, CSS, or JavaScript files
  • You want to reduce server load during traffic spikes
  • You need DDoS protection

Maybe not, if:

  • All your visitors are in one region with a nearby server
  • Your site is text-only with minimal assets
  • Your hosting already includes CDN (like GetHost.One)

CDN Option 1: Cloudflare (Free — Recommended)

Cloudflare is the most popular CDN for WordPress. The free plan includes CDN, SSL, DDoS protection, and basic optimization.

Setup Steps

Step 1: Create a Cloudflare Account

Go to cloudflare.com and sign up for a free account. Add your domain when prompted.

Step 2: Update Nameservers

Cloudflare will provide two nameservers (e.g., dns.ns.cloudflare.com and kiki.ns.cloudflare.com). Update these at your domain registrar:

  1. Log in to your domain registrar (Namecheap, GoDaddy, Google Domains, etc.)
  2. Find the nameserver settings for your domain
  3. Replace existing nameservers with Cloudflare's
  4. Save changes (propagation takes 24-48 hours)

Step 3: Configure SSL/TLS

In Cloudflare dashboard:

  1. Go to SSL/TLS → Overview
  2. Set encryption mode to Full (strict)
  3. Enable Always Use HTTPS
  4. (Optional) Enable Automatic HTTPS Rewrites

Step 4: Enable WordPress Optimization

  1. Go to Speed → Optimization
  2. Enable Auto Minify for JavaScript, CSS, and HTML
  3. Enable Brotli compression
  4. Configure caching rules

Step 5: Install Cloudflare Plugin

Install the Cloudflare plugin for WordPress:

  1. Go to Plugins → Add New
  2. Search for "Cloudflare"
  3. Install and activate
  4. Enter your Cloudflare API key (found in Cloudflare dashboard)
  5. Enable automatic cache purging on content updates

Performance Impact

Metric Without CDN With Cloudflare Free
TTFB (local) 80ms 80ms (same)
TTFB (cross-continent) 350ms 120ms
Page load (global avg) 2.1s 0.9s
Bandwidth savings 50-70%

CDN Option 2: Bunny CDN ($1.50/month)

Bunny CDN is a paid alternative with global POPs and competitive pricing.

Setup Steps

  1. Create a Bunny CDN account
  2. Go to CDN → Add Pull Zone
  3. Enter your WordPress site URL as the origin
  4. Choose edge rules for caching static assets
  5. Install a WordPress plugin like BunnyCDN or CDN Enabler
  6. Configure the plugin with your Bunny CDN pull zone URL

Bunny CDN charges per usage — typically $1-5/month for a standard WordPress site.

CDN Option 3: QUIC.cloud (Free Tier with LiteSpeed)

If your host uses LiteSpeed servers (like GetHost.One), QUIC.cloud is the easiest CDN to set up.

Setup Steps

  1. Install LiteSpeed Cache plugin
  2. Go to LiteSpeed Cache → CDN
  3. Click "Request QUIC.cloud CDN"
  4. Create a free QUIC.cloud account
  5. The plugin automatically configures the CDN
  6. Enable CSS/JS/HTML minification in CDN settings

CDN Option 4: KeyCDN ($4/month)

KeyCDN is a performance-focused CDN with 35+ POPs.

Setup Steps

  1. Create a KeyCDN account
  2. Create a Pull Zone with your WordPress URL as origin
  3. Get your CDN URL (e.g., yourzone.keycdn.com)
  4. Install CDN Enabler plugin
  5. Enter your CDN URL in plugin settings
  6. Save — the plugin replaces static asset URLs automatically

CDN Comparison

CDN Starting Price Global POPs WordPress Plugin SSL DDoS Protection
Cloudflare Free 330+ Official plugin
Bunny CDN $1.50/mo 120+ Third-party
QUIC.cloud Free tier 100+ Built-in (LSCache) Limited
KeyCDN $4/mo 35+ Third-party Limited

Caching Configuration: What to Cache

For optimal WordPress CDN performance, cache these file types:

# Typical CDN cache rules
Images:     .jpg, .jpeg, .png, .gif, .webp, .avif, .svg
Documents:  .pdf, .doc, .ppt
Media:      .mp4, .webm, .ogg
Fonts:      .woff, .woff2, .ttf, .eot
Code:       .js, .css

Set cache duration to at least 7 days for static assets. WordPress plugins like LiteSpeed Cache can automatically set optimal cache headers.

Troubleshooting Common CDN Issues

Problem: CDN Showing Old Content

Fix: Purge the CDN cache. Most CDNs have a "purge cache" button. In Cloudflare, go to Caching → Purge Everything.

Problem: Mixed Content Warnings

Fix: Ensure all URLs use HTTPS. Enable "Automatic HTTPS Rewrites" in Cloudflare or use a plugin like Really Simple SSL.

Problem: Admin Panel Loading from CDN

Fix: Most CDN plugins let you exclude certain paths. Add wp-admin and wp-login.php to the exclusion list.

Problem: Page Builder Not Working

Fix: Disable CDN for the WordPress admin area. Some page builders make AJAX calls that don't work when served from a CDN.

Best Practices

  1. Always exclude wp-admin from CDN caching
  2. Set appropriate TTLs — 7 days for versioned assets, 1 year for fingerprinted files
  3. Purge cache after publishing or updating content
  4. Monitor CDN analytics to understand your visitor geography
  5. Use CDN with page caching — CDN delivers static files, page cache serves HTML

FAQ

Is a CDN necessary if I have fast hosting?

A CDN is valuable for global audiences regardless of hosting speed. It reduces latency for international visitors and offloads traffic from your server.

Does GetHost.One include a CDN?

GetHost.One supports Cloudflare CDN integration. Combined with LiteSpeed Enterprise and Redis, this provides excellent global performance on a lifetime plan.

Can a CDN hurt my SEO?

No — faster load times from CDN delivery improve Core Web Vitals, which is a positive SEO signal. Just ensure the CDN doesn't block search engine crawlers.

Conclusion

A CDN is one of the most cost-effective performance upgrades for WordPress. Cloudflare's free plan is excellent for most sites, while QUIC.cloud integrates seamlessly with LiteSpeed servers.

GetHost.One includes LiteSpeed + Redis + Cloudflare CDN support on every lifetime plan.

Share: 𝕏
← Back to all articles