# Bilingual Independent Site Architecture: Accept-Language, Vary, and Hreflang Pitfalls

> **TL;DR**: Learn how to correctly implement Accept-Language negotiation, Vary headers to prevent CDN language mixing, and Hreflang for bilingual independent sites. Includes production code, debugging tips, and a launch checklist.
> **Source**: https://ai.yevrix.com/articles/multilingual-ssr-vary-accept-language-cdn-cache

## 1. Real-World Pain Points and Underlying Mechanisms

Many independent sites going global use SSR to render multilingual pages dynamically, but often encounter these issues:

- After switching language, refreshing the page reverts to the default language;
- Search engine crawlers see mixed content across language versions;
- CDN caches a response for one language and serves it to all users;

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/multilingual-ssr-vary-accept-language-cdn-cache
