Caching pages with cookies - feature request

Poul-Henning Kamp phk at
Wed Sep 12 20:14:34 CEST 2007

In message <46E82BB9.1010808 at>, Klaus writes:
>Ah great!
>But what if I only want to cache on some of the cookies. Like a 
>sessionID  and ignore the rest?

That's still in the pipeline.  The intended syntax is:

	set req.hash += req.http.cookie[SessionID];

But it's not implemented yet.

You can hack your way out of it for now with the regsub() function.

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