Closed
Bug 1071127
Opened 10 years ago
Closed 9 years ago
Add rewrites for TOS and privacy policy CDN urls
Categories
(Marketplace Graveyard :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: muffinresearch, Unassigned)
Details
(Whiteboard: [marketplace-transition])
Currently we jump through hoops to introspect lang attrs and point to the correct terms or privacy link for persona (and soon FxA for payments)
The urls end up like so:
https://marketplace-dev-cdn.allizom.org/media/docs/terms/en-US.html?20140717
There's currently a finite set of langs for which terms and the privacy policy have been localized for. E.g:
['cs', 'de', 'el', 'en-US', 'es', 'hr', 'hu', 'it', 'pl', 'pt-BR', 'sr', 'zh-CN'];
Could we just point at https://marketplace-dev-cdn.allizom.org/media/docs/terms
and have the server look at the Accept-Language headers and point to the correct file if it exists on the CDN, falling back to https://marketplace-dev-cdn.allizom.org/media/docs/terms/en-US.html if a localized file doesn't exist?
Comment 1•10 years ago
|
||
If you can `Vary` on `Accept-Language`, yes. But Akamai, along with most other CDNs, does not respect the `Vary` response header.
Reporter | ||
Comment 2•10 years ago
|
||
Ok, so another way would be to do a redirect ahead of the CDN in that case.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in
before you can comment on or make changes to this bug.
Description
•