• Resolved visheshguptha0

    (@visheshguptha0)


    Hi,
    Iam using a plugin that uses premium cloudflare cache.

    It wants us to keep optimization of LITESPEED as enabled but cache to be disabled.

    means: all modification, deferred and combine etc feature, all optimization to be done by LITESPEED, and all cache to be managed by another plugin.

    1. Is it possible.

    2. If yes, how? what to keep enable and what exactly to be disabled.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1. Is it possible.

    No cache -> No Optimization. Optimization is depending on cache function.

    Thread Starter visheshguptha0

    (@visheshguptha0)

    Cache and Page optimization are two separate heads in litespeed. How come JS, HTML and CSS minification etc is related to page cache??

    Sorry to say that, but it is a bit more complicated as you think it is. You’re welcome to see for yourself by studying the plugin’s source code. But I don’t want to expect you to do that and I don’t want to withhold anything from you. There is a simple way to prevent that no matter which page is accessed, nothing is cached. However, this method does not disable the cache, it only prevents caching. It’s a dirty method, though, and you’re welcome to try it. I cannot promise you whether the optimization functions will be retained as a result. Just test it.

    Regardless of this, you will run into problems when using Cloudflare at the latest. Not with all optimization functions, but with important ones in any case.

    Add this to your .htaccess

    <IfModule LiteSpeed>
    RewriteRule .* - [E=Cache-Control:no-cache]
    </IfModule>
    Plugin Support qtwrk

    (@qtwrk)

    Cache and Page optimization are two separate heads in litespeed. How come JS, HTML and CSS minification etc is related to page cache??

    as optimization process could be time/resources consuming

    so if a page is not cacheable , then it will also bypass the optimization

    you can try in Cache -> Force Cache -> add / 1 into the list

    this will force page to be cached for 1 second, which is literally as no cache , but enables optimization

    and if you are using other cache system , make sure you do not enable JS/CSS minify/combine

    Thread Starter visheshguptha0

    (@visheshguptha0)

    They wrote that we can keep your cache enabled if:

    if that plugin is not adding any cache-control header and also not doing anything with cloudflare and just handling server level optimization, then yes it should work properly

    Please guide, if you add any cache control header, as it might conflict with Cloudflare!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , LSCWP doesn’t touch anything about cache-control header , it only send a header x-litespeed-cache-control for LiteSpeed webserver.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable Cache in Litespeed?’ is closed to new replies.