Vary Cookie in plugin?




Wordpress LScache Plugin: Vary Cookie in plugin?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Is there any way of setting RewriteRule . ? [E=Cache-Vary:CookieName] in the plugin, or is editing .htaccess the only way? If I do need to edit .htaccess Where in .htaccess to I place it to prevent overwriting when doing changes in plugin? Hi, Currently direct edit .htaccess is the only way , it should be improved in future version. take this as example It should not be modified until you enable/disable the cache function. Best regards, Thank you for the fast reply @CacheCrawler! Yeah, I found that answer through google, but just wanted to check if there was any update to it. My RewriteRule was removed when I removed my cookie from the exclude field in plugin settings. Hi, Sorry for the trouble , but it is the only way for now ? this should be improved in future version Best regards, Hi @oyvindlille, you can use our API to add cookies, if you are going to edit the .htaccess file, just put your code outside ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## comment block.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference