A content delivery network (CDN) serves your site’s static files – images, CSS and JavaScript – from servers located closer to your visitors. This reduces the distance data travels, which lowers page load times and reduces the load on your hosting server.
This guide covers how to point your WordPress site at a CDN URL using a caching plugin. Once configured, static assets load from the CDN rather than your origin server.
LiteSpeed Cache includes a built-in CDN integration panel. You will point the plugin at your CDN hostname so it rewrites static asset URLs in your page source, directing browsers to fetch those files from the CDN instead of your server.

https://cdn.yourdomain.co.uk. Replace cdn.yourdomain.co.uk with your actual CDN hostname.//, for example //yourdomain.co.uk. This tells the plugin which URLs to rewrite.
After saving your CDN settings, you need to clear the existing cache so WordPress regenerates page output with the new CDN URLs. Without this step, visitors may still receive cached pages that reference your origin server.
F12 on most browsers). Go to the Network tab, reload the page and look at the domain column for image, CSS and JS requests. These should now show your CDN hostname rather than your origin domain.If assets are loading from your CDN hostname, the integration is working correctly.
If the Network tab shows assets loading from your origin domain after saving settings, the cache may not have been fully cleared, or the CDN URL field may contain a typo.
https:// and no trailing slash.// prefix without a protocol.Ctrl + Shift + R on Windows or Cmd + Shift + R on Mac).Mixed content warnings appear when some resources load over HTTP while the page itself loads over HTTPS. This can happen if your CDN URL was entered without the https:// prefix, or if your site’s WordPress address is still set to HTTP.
https://.https://.If certain file types are not being served from the CDN, they may have been excluded in the plugin’s file type list, or the CDN service itself may have caching rules that override the plugin settings.
Your WordPress site is now configured to serve static assets through your CDN. The caching plugin rewrites image, CSS and JavaScript URLs so browsers fetch those files from the CDN hostname rather than your origin server.
Check your site’s performance over the following days and use your browser’s Network tab to confirm CDN delivery remains active after any plugin updates or cache purges. For related tasks, see our guides on increasing the WordPress memory limit, optimising WordPress images with AVIF and forcing HTTPS in WordPress. You may also find the guide to boosting WordPress speed with caching useful for further performance improvements.
Take a look at our WordPress hosting plans, built to work alongside CDN and caching configurations for faster page delivery.
Get fast, secure and reliable WordPress Hosting with optimised for performance with AccelerateWP.
Get WordPress HostingCreate fully isolated individual accounts for your clients and manage them all from one dashboard.
Get Reseller Hosting