ISPA Winner 2018 16 Years of Krystal

Getting Started

Please find below our list of Getting Started guides to help with your hosting account.

How to disable LiteSpeed caching

This article was posted in: Getting Started

LiteSpeed is the web service we use on all our shared servers instead of the usual Apache and one benefit of this is the caching that is included within LiteSpeed as standard. While this does improve performance some users may want to disable this cache in favour of a different caching system or so that the website itself is not cached at all.

To do this you need to ensure you have a .htaccess file in your web space, ideally in the same folder as the website itself, in most cases this will be the public_html folder, then within this file you must add the following code:

RewriteEngine On
RewriteRule .* - [E=Cache-Control:no-cache]

Once added if you allow a few minutes to pass this will ensure the cache is fully disabled and not active on your website.

Note: This will disable the LiteSpeed cache over everything in public_html folder, for example any addon domains with a document root inside the public_html folder will also experience no caching from LiteSpeed.