python - Multi-language website - unique URLs required for different languages (to prevent caching)? -


i have developed appengine/python/django application works in spanish, , in process of internationalizing multi-language support. dating website, in people can browse other profiles , send messages. viewing profile in different languages result in of text (menus etc) being displayed in whichever language selected, user-generated content (ie. user profile or message) displayed in original language in written.

my question is: necessary (or idea) use unique urls same page being displayed in different languages or ok overload same url given page being displayed in different languages. in particular, worried if use same url multiple languages, pages might cached (either google, or other proxy might not aware of), result in incorrect language being displayed user.

does know if legitimate concern, or if worrying not happen?

in principle, can use content-language , vary response headers , accept-language request header control how caches behave , prevent them serving wrong language users.

in practice, however, accept-language set incorrectly in browsers, why sites don't rely on it, or @ least provide secondary mechanism. caches may unreliable respecting vary header, i'm not sure. having language-specific urls practical way it, , avoids potential issues caching.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -