Alex Rivera | Logout

What are Content-Language and Accept-Language?

Asked 2011-05-27T20:41:34.227
129

I have seen the HTTP headers of Content-Language and Accept-Language, could someone explain what these are for and the difference between them? I have a multilingual site and wondering should I be setting both to the sites current selected language, by the user.

Edit
Report

1 Answer

27

Content-Language describes the language that a particular piece of content is intended for. Accept-Language is the list of languages that a user agent wants content in. The best way to think of this is that Content-Language describes content and Accept-Language conveys a preference.

answered 2011-05-27T20:46:26.657

Your Answer