headers will be read sequentially
> and the last found value is used.
That makes a lot more sense. :)
Out of curiosity, are things like this documented on Trac or somewhere else?
I probably missed it searching the tickets - has this work been started?
> >http://treehou.se/~omar/cookie-in
"Poul-Henning Kamp" <[EMAIL PROTECTED]> writes:
> Does your backend include a proper Vary: header when it selects on
> language ?
Applications which use cookies should emit "Vary: Cookie".
The HTTP protocol provides a mechanism for selecting the language of a
page (client sends Accept-Language, s
http.Cookie[language]
and just as for http headers, the headers will be read sequentially
and the last found value is used.
>http://treehou.se/~omar/cookie-inspection-1.patch
Not bad :-)
>The other thing I'd like to be able to do is have some sort of 'first
>match over an array o
"Omar Kilani" <[EMAIL PROTECTED]> writes:
> I'd like to modify req.hash in vcl_hash to take into account the value
> of this particular cookie [...]
> From looking through the varnish-cache code, I don't think this type
> of operation is supported, and I'm not sure what the best way to
> represent
alues for the same cookie name... :) and *looks* right,
but obviously has a very different meaning in VCL where it compiles
to:
VRT_GetHdr(sp, 1, "\020Cookie.LANGUAGE:")
I've created a small patch:
http://treehou.se/~omar/cookie-inspection-1.patch
Which implements VRT_GetHdrField and c