In order to be able to efficiently serve language variants from the REST API, we need to normalise the HTTP Accept-Language header for incoming requests. Given that the number of wikis that actually support language variants is rather limited and that the plan is to instruct Varnish to only vary the objects by this header for wikis that do support them, a first good version is to simply trim the header and use only the first language in the list.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
VCL: Normalise the Accept-Language header for the REST API | operations/puppet | production | +54 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Stalled | None | T324931 Clean up open RESTBase related tickets | |||
In Progress | None | T262315 <CORE TECHNOLOGY> API Migration & RESTbase Sunset | |||
Resolved | DAlangi_WMF | T324678 Migrate proton (chromium-render) away from restbase | |||
Open | None | T167603 Any Chinese Wiki's projects about "Download as PDF" can not auto change to Simplified Chinese or Traditional Chinese | |||
Resolved | ovasileva | T147553 [EPIC] Page previews broken on many projects | |||
Open | ovasileva | T244262 [Epic] Enable page previews and reference previews as a beta feature on all projects | |||
Open | None | T111231 Page previews for Wikidata | |||
Invalid | None | T148854 Use RESTBase for zhwiki | |||
Resolved | • Pchelolo | T188164 Popups don‘t support language variant conversion and {{lang}} template | |||
Resolved | • mobrovac | T190689 FY17/18 Q4 Program 7 Services Goal: Language variants support | |||
Resolved | • Pchelolo | T159985 Implement language variant support in the REST API | |||
Resolved | • mobrovac | T195327 Normalise the Accept-Language header for REST API requests |
Event Timeline
Comment Actions
Change 434558 had a related patch set uploaded (by Mobrovac; owner: Mobrovac):
[operations/puppet@production] VCL: Normalise the Accept-Language header for the REST API
Comment Actions
Change 434558 merged by Ema:
[operations/puppet@production] VCL: Normalise the Accept-Language header for the REST API