Open Balerion300 opened 9 months ago
Just to follow up, I've pulled the Gtag extension because it was suggested that its decision to put the code in or not may mess up caching. Instead, I used this code snippet at Stackoverflow to insert the tag on all pages. The result is the same: OLS with the plugin will simply not cache any pages when that code is present, or perhaps when its cookies are being added. Without the code, there's no problem.
Going to cite a long forum thread here discussing this issue, and hoping others could look at it and at least confirm the problem. I have always used Google Analytics for my wiki, and have served ads (which, among other things, means cookies for consent and ad tracking) before. Trying to move from Nginx+Varnish to OLS+LS Cache because of how simple this plugin made it seem, but I kept bashing my head into not actually getting cache working in browser -- the LS cache check site (which ignores cookies) had no problem getting hits, but as soon as a real visitor visited, problems ensued.
As far as I can tell, as soon as any other cookies are put by the wiki by scripts (e.g. the Gtag extension to enable Google Analytics), LiteSpeedCache can no longer successfully cache pages for users. This, on a straightforward install of OLS and Mediawiki 1.39.6, with the latest versions of the extensions.
Can anyone using this plugin confirm that Gtag being added to a site will break the ability to cache? And, if so, does anyone know how to modify the extension so it simply ignores these other cookies?