Wordpress LScache Plugin: Conflict with Cookiebot plugin (does not block cookies)
Last Updated on: Wed, 15 Apr 2026 00:00:02 Since the last two updates of the plugin lite Speed does not block cookies with the plugin Cookiebot. On all my websites it works perfectly and blocks third party cookies, except on the ones I use Lite Speed Cache , as there is a conflict why Cookiebot does not block me from advertising or Google Analytics. This topic was modified 2 years, 1 month ago by Gruskel. Hi, What do you mean block cookie ? as far as I know LSCWP doesnt have such feature you mean with LSCWP enabled , this cokiebot doesnt work properly ? Best regards, Sorry English is not my native language, indeed, with LSCWP activated, the plugin Cookiebot does not block any cookies, I have written in the support of the plugin but they do not answer. Hi, I might have an idea about it already Could you please provide the report number ? you can get it in toolbox -> report , click send to LiteSpeed Best regards, Thank youthe report number is CMAHAENA Hi, OK , now could you please disable cache plugin for the time being ? and please tell me how can I verify if certbot works or not with cache OFF ? Best regards, I just disabled the Lite speed cache plugin. You will know whether the cookiebot plugin works or not because it should not load any cookie script until the user clicks OK on the cookie banner. In other words, it should not load the Adsense script until the user clicks OK. Now as I have disabled the lite speed cache plugin, the Cookiebot plugin works and blocks cookies but if I re-enable your cache plugin the cookiebot plugin will stop working. Thank you. Hi, OK, now please try this 1. enable LSCWP 2. add this code at top of your .htaccess RewriteRule . - [E=Cache-Vary:CookieConsent] 3. purge all 4. check again , see if it works then Best regards, Hello good, where do I have to add it ? if I put it here it doesnt work and if I add it before # BEGIN LSCACHE neither? it loads me the adsense ads? before hitting OK # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . ? [E=Cache-Control:no-autoflush] RewriteRule . ? [E=Cache-Vary:CookieConsent] ### marker CACHE RESOURCE start ### RewriteRule wp-content/. /[^/] (responsive|css|js|dynamic|loader|fonts) .php ? [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker FAVICON start ### RewriteRule favicon .ico$ ? [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker DROPQS start ### CacheKeyModify -qs:fbclid CacheKeyModify -qs:gclid CacheKeyModify -qs:utm CacheKeyModify -qs:_ga ### marker DROPQS end ### ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## # END LSCACHE # BEGIN NON_LSCACHE ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## # END NON_LSCACHE RewriteEngine On RewriteCond % HTTPS off RewriteRule ^(. )$ https://% HTTP_HOST % REQUEST_URI [L,R=301] RewriteEngine On RewriteBase / RewriteRule ^index .php$ ? [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_FILENAME !-d RewriteRule . /index.php [L] # BEGIN WordPress # END WordPress # Wordfence WAF php_value auto_prepend_file /home/ /public_html/wordfence-waf.php php_value auto_prepend_file /home/ /public_html/wordfence-waf.php Require all denied Order deny,allow Deny from all # END Wordfence WAF hmmmm did you purge all on plugin , and also clean up your browser cache after you add it ? If I just did it and nothing, it doesnt work? the thread I opened from the developers of Cookiebot is https://wordpress.org/support/topic/do-not-block-cookies-with-the-little-speed-cache-plugin/#post-13507900 Hi, OK , please create a ticket here, we will investigate it further best regards, Thanks my ticket is Ticket Created #203405
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference