Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-05 Thread Torsten Bronger
Hallöchen! Salvatore Iovene writes: > On Sat, Nov 5, 2011 at 7:43 AM, Torsten Bronger > wrote: > >> Sending e.g. "Expires: ..." so that the page expires immediately >> solved the problem. > > Sending an Expires header so that the page expires immediately > does work, but it feels like fixing a h

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-05 Thread Salvatore Iovene
On Sat, Nov 5, 2011 at 7:43 AM, Torsten Bronger wrote: > Sending e.g. "Expires: ..." so that the page expires immediately > solved the problem. Sending an Expires header so that the page expires immediately does work, but it feels like fixing a headache with a guillotine. The browser should cache

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Torsten Bronger
Hallöchen! Salvatore Iovene writes: > On Friday, November 4, 2011 5:31:46 PM UTC+2, Salvatore Iovene wrote: >> >> if hasattr(request, 'session'): >> request.session['django_language'] = lang >> else: >> response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lan

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
On Friday, November 4, 2011 5:31:46 PM UTC+2, Salvatore Iovene wrote: > > if hasattr(request, 'session'): > request.session['django_language'] = lang > else: > response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang) > I have solved my problem by setting the

Re: I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
PS: I have also tried the @vary_on_header('Accept-Language') decorator, but unfortunately that didn't help either. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-

I18N and caching: page don't change language until I press F5 in browser

2011-11-04 Thread Salvatore Iovene
Hi, I've got a Django website that's multi-lingual, and I'd like to use memcaching on it. While everything works fine with caching disabled, I have observed the following when caching is enabled: 1) Open any page on the website 2) Click on link (the image of a little flat) to change language 3)