Varnish and language cookie
alessandro.ronchi at soasi.com
Thu Feb 18 21:58:39 CET 2010
This is my configuration file:
This is the site I'm trying to cache:
http://www.profumeriasilvia.com:989 (989 is varnish port).
My problem is that language is set inside a cookie.
So, If I try, for example, in order:
2) http://www.profumeriasilvia.com:989/?lang=en (english)
3) http://www.profumeriasilvia.com:989/product/eau-de-rance (should be
english, but it's italian).
In 3 I've the cookie named django_language.
I want to cache pages with django_language in hash if it's set, so all users
that choice that language will get the correct translated version.
set req.hash += req.http.cookie;
but It seems to don't work.
Thanks in advance, best regards.
SOASI - Sviluppo Software e Sistemi Open Source
Hobby & Giochi, l'e-commerce del divertimento
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc