My Varnish project

Poul-Henning Kamp phk at phk.freebsd.dk
Tue May 29 11:55:15 CEST 2007


In message <465BF076.9030804 at adofms.com.au>, 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 ???? Correct me if I am wrong.

Actually, we just added a facility to do this:

	vcl_hash {
		req.hash += req.http.cookie;
	}

It will (not yet) do the right thing if there are multiple cookie
header lines, but that is in the works.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list