Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLS, Mediawiki, and LiteSpeedCache #377

Open
Balerion300 opened this issue Feb 8, 2024 · 1 comment
Open

OLS, Mediawiki, and LiteSpeedCache #377

Balerion300 opened this issue Feb 8, 2024 · 1 comment

Comments

@Balerion300
Copy link

Using the latest OLS with Mediawiki to try and take advantage of the LitespeedCache extension, and seem to have discovered some sort of problematic interaction with scripts added via extensions or hooks that set cookies. Vanilla Mediawiki does not have this problem, according to my tests, but as soon as there's a script (like Google Analytics via the Gtag extension or this hook from the top answer at Stackoverflow) that sets a cookie, it seems that maybe ls_smartpush (maybe!) leads to some sort of inappropriate prefetching that voids efforts to cache a page. Other things hooked in -- I had meta-tags set via a hook, and a simple javascript that did not set cookies but would rewrite links to an affiliate -- did not seem to cause this problem.

Some of this is above my understanding, but from near the end of page 3 and on on the OLS forum an experienced LSWS user looked into it and found that LSWS + the LiteSpeedCache extension worked without a problem even when using Gtag, so it seems to be some sort of difference between OLS and LSWS that isn't obvious. Again, the ls_smartpush thing may be part of it, but it does not seem to be the case that smartpush can be disabled via an .htaccess directive as it can be in LSWS.

@Balerion300
Copy link
Author

Balerion300 commented Feb 8, 2024

I thought I'd share links to the sites where I am testing this: https://wiki-test.westeros.org (no cookies set for GA or advertising) and http://test.westeros.org (cookies set for GA via a hook in LocalSettings.php). It's also noted on the forum that the latter page gives hits if you use an ad blocker like Ublock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant