What are Content-Language and Accept-Language?

后端 未结 5 1562
星月不相逢
星月不相逢 2020-12-01 02:12

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 h

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 03:15

    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.

提交回复
热议问题