This is an old revision of the document!


If there's any reason like conflict and you need to bypass CDN or optimize in Ajax, you can use following methods

  1. In your theme's functions.php:
    • To bypass CDN
      defined( 'DOING_AJAX' ) && add_filter( 'litespeed_can_cdn', '__return_false' );
    • To bypass Optimize
      defined( 'DOING_AJAX' ) && add_filter( 'litespeed_can_optm', '__return_false' );
  2. Or call the filter when using AJAX and return false to bypass CDN/Optimize
  • Admin
  • Last modified: 2018/07/10 13:21
  • by Eric Leu