Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-Language in the wild #11

Open
foolip opened this issue Aug 9, 2024 · 1 comment
Open

Content-Language in the wild #11

foolip opened this issue Aug 9, 2024 · 1 comment

Comments

@foolip
Copy link

foolip commented Aug 9, 2024

https://github.com/explainers-by-googlers/reduce-accept-language?tab=readme-ov-file#no-content-language-in-the-response-header says:

No Content-Language in the response header: This means the content is intended for all language audiences.

Is this really the case? What proportion of pages send a Content-Language response header, and does its absence imply anything about the language?

As part of a new negotiation approach with the Avail-Lanuages header it doesn't matter so much what existing content does, but as part of an analysis of site compat, I'd be surprised if "no `Content-Language → no problem" is a safe assumption.

@Tanych
Copy link
Collaborator

Tanych commented Aug 14, 2024

We don't assume "no `Content-Language → no problem". For now, most sites actually don't sent the content-language header to indicate the response language, and only small portion of sites actually care about the accept-language header.
If sites would like serves users the best representation based on the accept-language headers, they need to indicate what language they supports, and the browser can pick the best one during the language negotiation. This means sites need to take some action to get users' non-first language preference. If sites only care about users' first language preference, its no-op.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants