You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: