However you did make me think. You suggested that the Vary header should include Content-Language. If I look at my response header the Content-Language header looks like: Content-Language: nl and if I switch to English it looks like: Content-Language: en. Obviously. Perhaps there is a bug in locale.py. Should: patch_vary_headers(response, ('Accept-Language',)) perhaps be: patch_vary_headers(response, ('Content-Language',)) Could it be that simple? I will check. If this is indeed the solution I will file a bug.
I made the change mentioned above. But, it simply does NOT work! Whenever I enable global caching I can NOT switch between languages anymore. Only one page is saved in the cache! I enabled file based caching. And I would expect two files in the cache. One for each language. But, what ever I do only one version of each page is cached! The order in which the caching middleware appears also does not seem to matter. How do I get internationalization (i18n) and caching to work together? Thanks. Berry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---