Varnish and language cookie

Alessandro Ronchi alessandro.ronchi at
Thu Feb 18 21:58:39 CET 2010

This is my configuration file:

This is the site I'm trying to cache: (989 is varnish port).

My problem is that language is set inside a cookie.

So, If I try, for example, in order:
2) (english)
3)  (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
SOASI - Sviluppo Software e Sistemi Open Source
Hobby & Giochi, l'e-commerce del divertimento
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list