https://bugzilla.wikimedia.org/show_bug.cgi?id=41451

--- Comment #16 from Rob Lanphier <[email protected]> 2012-11-06 07:48:28 UTC 
---
(In reply to comment #12)
> How should this be implemented then so that anonymous users get served the UI
> that their accept language or the cookie that is set when the change the
> language away from the accept language? Code samples will probably suffice.


Hi Siebrand, are you asking for help with setting the Vary header generally, or
are you asking about whether the Vary header can be set conditionally based on
whether the cookie is set?  If you're asking about the former, I think
OutputPage->addAcceptLanguage() and the GetCacheVaryCookies hook is where it's
at.  If you're asking about the latter, that seems like another wrinkle in all
of this; I'm not sure what the logic should look like; I think maybe the best
thing from a caching perspective may be to set the cookie based on the
Accept-Language header, and then only Vary on the cookie.

For limited deployments of ULS, varying the cache on ULS cookies and/or
Accept-Language headers should be fine.  Where the concern is is if/when we
deploy this widely over all wikis, varying all pages on all languages.  That
could split the cache pretty badly.

I suppose we can fix this now for wikidata.org, and then worry about the larger
cache issue once ULS is closer to going into wide deployment.

-- 
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

Reply via email to