remove/unset set-cookies

Vincent cooltechemail at
Fri Dec 10 15:08:26 CET 2010


I am trying to remove all set-cookies from the backend but I still found
Set-Cookie in the log (varnishlog -b).

I have the following setup:

sub vcl_fetch {
    unset beresp.http.set-cookie;

and varnishlog -b shows something like this:

   16 RxHeader     b Set-Cookie: name=xyc;; path=/;
expires=Sun, 09-Jan-2011 14:04:10 GMT

I am wondering how to completely remove the Set-Cookie. Currently my hitrate
is only 80%, I think the set-cookie header is the main reason.

also what's the difference between
    unset beresp.http.set-cookie;
    remove beresp.http.set-cookie;

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list