varnish & cookies & multilanguage
rafailowski
rafailow at gmail.com
Thu Aug 2 11:20:33 CEST 2007
Hello,
I'm new to varnish and i have some problems with cookies.
I have to cache a website who use coookies to determine the language.
The cookies are:
15 TxHeader b Cookie: _ZopeId="23273311A29b-he1CIg"; LOCALIZER_LANGUAGE="es"
The url used to change language on the website is like that:
http://xxxx?lang=en
So i made this :
if (req.url ~ "=(en|es|de|fr|it|pt|pl|ru|el|ko|zh-CN|zh|ja|ar)$"){
pipe;
}
But it didn't solve the problem.
The only way i found is :
if (req.http.Cookie ~ "LOCALIZER_LANGUAGE") {
pipe;
}
Adn it works fine but now, nothing is cached :(
So my question :)
Is there's a way to cache a website like this, using cookies for language?
Thx in advance,
rafailowski
More information about the varnish-misc
mailing list