https://bugzilla.wikimedia.org/show_bug.cgi?id=41451
--- Comment #25 from Mark Bergsma <[email protected]> 2012-11-06 14:18:17 UTC --- (In reply to comment #14) > I dug up Tim's original mail containing the patch that introduces > X-Vary-Options into Squid: > <http://www.squid-cache.org/mail-archive/squid-dev/200802/0085.html>. There > seems to be very li8ttle documentation beyond that. From what I see, the best > we can do with that is something like: > > X-Vary-Options: Cookie; string-contains=language; > > But that would just split the cache into two: requests with the "language" > cookie set, and those without the language cookie set. It does not very on the > value of the cookie. Also - is it still true that X-Vary-Options is a custom > patch, and never got into the Squids main line? if not, please fix > <http://wiki.squid-cache.org/Features/XvaryOptions> :) I believe it did enter Squid main line. But that doesn't help much; other caches (like Varnish) don't have it. > Anyway - what we would actually need is something like > > X-Vary-Cookie: language > > ...that would vary on the value of the language cookie. Or maybe > X-Vary-Options > could be extended to cover this: > > X-Vary-Options: Cookie; string-extract=language=([^;]*); > > But this is messy, and I don't think anyone is up to patching Squid further. > So... other options? Could we vary on the ETAg header, and generate it > depending on the user language? No, since the client doesn't know the E-Tag header of course, and isn't sending it. > PS: I'm also a bit surprised that this issue comes at a surprise. Allowing > anons to set the interface language is requested about once a year, and this > problem is the reason it got shot down time and time again. With regards to > Wikidata, I discussed this problem with several staffers at the Berlin > hackathon and at Wikimania. Essentially I was told "wait for ULS, they'll take > care of that stuff". Hm. I am too. It's not exactly a new problem. Of course exploding the cache is not a big problem for a small wiki like wikidata, but we can't even think about deploying this on any larger wikis until we've solved this properly... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
