Pages uncached after excluding cookie banner cookies




Wordpress LScache Plugin: Pages uncached after excluding cookie banner cookies

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi Can you give me some advise. I excluded the following cookies from my Complianz cookie banner plugin, as it they were causing the page to continuously refresh when using LiteSpeed Cache. cmplz_preferences cmplz_consent_status cmplz_choice cmplz_statistics-anonymous cmplz_statistics cmplz_policy_id cmplz_marketing cmplz_functional However, disabling these cookies causes all of my pages to not be cached, and I see this message at the end of each page. Any advice on how I resolve this? Report Number: GOJJDJMD Many thanks Alex Hi, please try remove the cookie list in setting , then add this at top of your .htaccess, save and purge all RewriteRule . - [E=Cache-Vary:cmplz_consent_status] Best regards, Thanks, Ive added that and all seems to be working but I have another related query if thats okay? When I am logged out and test the cache I am seeing the below: But when I am logged in and test I am only seeing Are pages for logged-in users not being optimised? Edit: In fact looking at the source code when logged in the css/js doesnt t appear to be minified/combined etc. The page is much shorter when logged out. Report number: VNUELLCQ Thanks Alex Hi, in Page optimization -> tuning -> about bottom of page, there is an option Optimize for Guests Only to controls if optimize for login user or guest user only Best regards, Thanks, that worked. Can I check with you something else? Is it normal to not see the code at the end of each code after I have enabled Cloudflare? When I disable Cloudflare the code is shown. When I enable it the code is missing. For info, I dont have html caching enabled on Cloudflare so it should only be caching the assets. Thanks Alex Hi, did you enable HTML minify in CF ? HTML minify will remove this comment in HTML source code Best regards, Yes I did wonder if that might be the case. Should I have the optimisation (css minify etc.) turned off in CF if Im already optimising in Litespeed Cache (or vice Versa)? Hi, yes, you should only enable minify at one place , either enable it in LSCWP , or in CF Okay thanks, Ill update that Hi Following up on the original issue. I added the following code to my .htaccess as suggested. RewriteRule . - [E=Cache-Vary:cmplz_consent_status] But today (about 3 days later) I have found I have the issue again where my pages keep refreshing. It clears after clearing my browser history. Do you think I should add any other cookies to the rule? Thanks Alex emmmmm , maybe the cookie name I chose was incorrect, try test with other cookie name



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



Reference