EU Cookie Law and LiteSpeed Cache Problem




Wordpress LScache Plugin: EU Cookie Law and LiteSpeed Cache Problem

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I am using a plugin EU Cookie Law. When the user accepts cookies it is not being recorded and the cookie banner remains. When I disable LiteSpeed Cache the plugin functions properly. Obviously the cookies are being cached and not being refreshed when a user changes his cookie preference. I am not sure this .htaccess rule will help: RewriteRule . ? [E=cache-vary:cookie_name] Thoughts? Cheers! This topic was modified 4 years, 6 months ago by Mellco. This topic was modified 4 years, 6 months ago by Mellco. Hi, Could you please try exclude that cookie in Exclude tab? Best regards, Hi, My mistake , dont use exclude, use: RewriteRule . ? [E=cache-vary:cookie_name] ought do it Best regards, Hello, Please tell me best way to determine cookie_name Cheers! Hi, You can check the cookie name in Chrome , in URL bar , click secure the greed lock pad , you can see cookie , from there you will see If I remember correctly , it should be euCookie ? Best regards, Hi, This crashes the site RewriteRule . ? [E=cache-vary:euCookie] I placed it here: RewriteEngine on CacheLookup on RewriteRule . ? [E=Cache-Control:no-autoflush] RewriteRule ^min/ w+ .(css|js) ? [E=cache-control:no-vary] RewriteRule . ? [E=cache-vary:euCookie] Hi, Try replace RewriteEngine on CacheLookup on RewriteRule . - [E=Cache-Control:no-autoflush] with RewriteEngine on CacheLookup on RewriteRule . - [E=Cache-Control:no-autoflush] RewriteRule . - [E=Cache-Vary:euCookie] Let me know how it goes. Best regards, Yes it was the capital V It works now thank you. Best Regards, Me



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



Reference