0

Many websites do not have the language or locale set in the URL string. They instead pull this out of the "Accept-Language" HTTP header. Is it possible with CDN's like CloudFlare and CloudFront to cache different versions of the page based on this header, or if not - what is the recommended best practice for this?

Brian Armstrong
  • 1,557
  • 3
  • 18
  • 22
  • [Current best practice](https://support.google.com/webmasters/answer/182192) is to use different URLs for pages in different languages. – Michael Hampton Nov 23 '15 at 06:21

1 Answers1

0

I don't know if any particular CDN supports it, but you should be able to do it by setting Vary: Accept-Language in your responses.

womble
  • 95,029
  • 29
  • 173
  • 228