LiteSpeed is a popular web server that hosting companies use. It is compatible with Apache and in most hosting cases is faster in the delivery of pages.


One of the great features of LiteSpeed is its built in caching module. LiteSpeed caching is very minimal but very capable. By default many hosting companies turn it on for you as a "feature". Here's the thing though:


YOU CANNOT USE A CACHE WITH CLOAKING


There, that was easy :)


The purpose of the cache is to server the web page faster by bypassing the normal process of calling PHP and other loaded modules. This doesn't work with cloaking. You NEED the cloaking script to run on every traffic request to detect whether the traffic is legit or from a bot/spider/partner/reviewer.


So this is what you do:


Install the cache but disable it.


Here's why. Your hosting company will update LiteSpeed as new patches become available. Often these new installs will just auto-install the cache AND enable it. By having the cache already installed but the settings set to "disable" you are good.


Disabling the LiteSpeed cache is a one-liner in your htaccess file:


source: https://www.revolutioninter.net/kb/how-to-disable-litespeed-cache-on-your-domain/