Troubleshooting CDN Issues

You can narrow down CDN issues through the following steps:

  • Visit the CDN URL and verify that it is accessible
  • Check your CDN settings
  • Did you enable the CDN?
  • Did you remember to start the CDN URL with https:// and end it with /?
  • Does the Origin URL start with // and end with /?
  • View Page Source, and verify that links are indeed pointing to the CDN URL.

You can verify that the CDN itself works by manually replacing the domain in the original URL with the CDN domain for any static file. If it loads correctly, then the CDN works. If it does not load, you may have a problem on the CDN side.


If the original URL of an image is and the CDN URL is, then try visiting

Bypass CDN in AJAX

If you have a conflict, and you need to bypass CDN functions in AJAX, you can either add some code to your theme's functions.php, or you can call the appropriate filter when using AJAX.

In the Theme's Functions

Add the following to your theme's functions.php file:

defined( 'DOING_AJAX' ) && add_filter( 'litespeed_can_cdn', '__return_false' );

Call the Filter

When using AJAX, you can call the above filter, and return false.

Last update: January 30, 2021