Varnish and language cookie
Alessandro Ronchi
alessandro.ronchi at soasi.com
Thu Feb 18 21:58:39 CET 2010
This is my configuration file:
http://dpaste.com/161264/
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:
1) http://www.profumeriasilvia.com:989/product/eau-de-rance?lang=it
(italian)
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.
I've used
set req.hash += req.http.cookie;
but It seems to don't work.
What's wrong?
Thanks in advance, best regards.
--
Alessandro Ronchi
http://www.soasi.com
SOASI - Sviluppo Software e Sistemi Open Source
http://hobbygiochi.com
Hobby & Giochi, l'e-commerce del divertimento
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100218/fb6d69c6/attachment-0003.html>
More information about the varnish-misc
mailing list