To set up LiteSpeed Cache in Joomla !, do the following:
.htaccess
, which is located in the root directory of the site, adding at the beginning the code:<IfModule LiteSpeed> CacheLookup on </IfModule>
If the site has mobile display settings, then you also need to add to the file .htaccess
such directives:
<IfModule LiteSpeed> ## Uncomment the following directives if you has a separate mobile view RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile] RewriteCond %{REQUEST_URI} enquiry [NC] RewriteRule .* - [E=Cache-Control:no-cache] </IfModule>