Exclude Cookies not working?




Wordpress LScache Plugin: Exclude Cookies not working?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hey there guys. Im using a fairly recent plugin that has a referral feature, its called Gameball and for the referral to work it saves a referral cookie on the browser of the user who clicked a referral link. I have found a very similar previous ticket on this problem of the affiliate cookies not working/saving with litespeed What I am seeing is very similar, so when Litespeed plugin is Active, the referral cookie saving is very inconsistent (sometimes it saves, most of the times it doesnt, sometimes after refreshing the page the cookie appears, most of the times it doesnt). If I turn off Litespeed plugin, then the referral cookie saves works every time. I have tried adding the referral cookie name ReferralCode to Exclusions in Litespeed, but it seems this is not working as it has not fixed the issue, and the cookie still does not save consistently while Litespeed is on. Could you please help shine a light in the right direction? Why is the exclusion of the cookie caching not working? Is this a Litespeed plugin issue or not? Is there something that the devs of Gameball can do to fix this? Thank you in advance for the attention and advice! This topic was modified 1 year, 11 months ago by impressao3d. Hi, exclude cookie meant: when that cookie exists , then dont cache the page please provide the report number , you can get it in toolbox -> report -> click send to LiteSpeed and you can also try reset to default setting first , and see how it goes Best regards, I understand, because the referral cookie can come from anyone at any random time from any random page, it just saves or not based on the code in the link such as: https://wordpress.org/plugins/litespeed-cache/?ReferalCode=12345asw (and the page can be any from the website a) so is there any way to stop litespeed from blocking/preventing the save of this cookie? Or is there a different way the cookie can be delivered so that its not blocked by litespeed? Thank you once again in advance I have tried resetting to default settings but the behavior of not saving the cookie is still the same Report number: QLUMAUVA Hi, please try form up 2 or 3 refer links then open a private window , open developer tools , access the referral link , and please post me the HTTP response header on these links Best regards, I am not 100% sure if this is what you requested but I tried to do the best I could according to the request: I tested 3 referral links a few times (sometimes they worked/the referral code saved, sometimes not) and made printscreens of the HTTP response headers + the corresponding cookies saving or not you can view it here: https://imgur.com/a/X7WQ8v5 Its essentially this behaviour that I see, sometimes cookies save, sometimes they dont, and once I disable Litespeed plugin then they always save consistently. If there is anything else you need or I can do just let me know! Hi, please try add ReferralCode in do not cache URI , purge all , and see how it goes Best regards, Thank you very much! So far that seems to have fixed and it appears to be working well



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



Reference