Re: Cookie inspection

2007-05-29 Thread Dag-Erling Smørgrav
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 this in

Re: Cookie inspection

2007-05-29 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Omar Kilani writes: Including the entire req.http.Cookie in the hash key is suboptimal as there are a bunch of other cookies set (session cookies, etc) depending on other variables. Doing something like req.http.Cookie.LANGUAGE *could* theoretically do the right

My Varnish project

2007-05-29 Thread admin
Hello, Thank you very much for an excellent product. I wish to use Varnish cache as a front end to my system, but I have some problems in using it, and the way forward probably involves hacking the code. I will run this past you all first to get your opinion. Background: Our site

Re: My Varnish project

2007-05-29 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], admin writes: 2) Cook up some VCL code to cache pages on a per-session basis, by appending the req.http.Cookie value to the URL before it is stored in the cache, and then doing the same thing when looking up the cache. VCL does not easily allow this to happen though

Re: My Varnish project

2007-05-29 Thread ADOFMS Admin, SteveOC
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], admin writes: Poul-Henning Kamp wrote: The man pages for VCL do mention a vcl_hash interface, but it says it's not implemented yet. Wasnt sure what it was, but I assume that is called whenever the hash value for the key of

Re: My Varnish project

2007-05-29 Thread Dag-Erling Smørgrav
ADOFMS Admin, SteveOC [EMAIL PROTECTED] writes: I have this now : sub vcl_hash { req.hash += req.http.cookie; } and get this when I run varnishd : (/etc/varnish/adofms.vcl Line 22 Pos 14) req.hash += req.http.cookie;

Re: Cookie inspection

2007-05-29 Thread Omar Kilani
On 5/29/07, Poul-Henning Kamp [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], Omar Kilani writes: Doing something like req.http.Cookie.LANGUAGE *could* theoretically do the right thing (and use http_GetHdrField, although some browsers can send multiple values for the same cookie