About this Document
Our Premium Super Fast Hosting Accounts use LiteSpeed web server over the normal Apache web server. LiteSpeed provides excellent improved performance and also provides caching as part of this.
Some users may wish to disable this in order to use another caching method or to stop the website from being cached at all.
How Do I Disable LiteSpeed Cache?
To disable cache, you need at add some code to your .htaccess file. You should find this in the root directory of your website.
Here’s the Steps to Take
- Log in to your cPanel account or connect to your webspace via FTP
- Navigate to the File Manager (on cPanel) and locate the public_html folder
- Find the .htaccess file in the root of your website
- Add the code below to the .htaccess file
- Save the file
The code you need to add is:
RewriteRule .* - [E=Cache-Control:no-cache]
All a few minutes and cache will be disabled and no longer active on your website.
To Re-Enable LiteSpeed Cache
To re-enable cache, simply remove the code you added above from the .htaccess file.