You are removing the request cookie there (req.). You should be removing the 
backend response cookie which is beresp.http.set-cookie.

Please read documentation - 
http://www.varnish-cache.org/trac/wiki/VCLExampleCacheCookies

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Marko Kruijer
Sent: Thursday, December 16, 2010 4:06 PM
To: [email protected]
Subject: unset cookie in vcl_recv not working

I'm trying to set up varnish and I'm struggling with the vcl configuration.
I took the default.vcl and modified the subroutine vcl_recv, my first goal was 
to cache pages that send cookies as well.

At first I tried to remove a certain cookie, but after many failures I just put 
'unset req.http.cookie;' in the vcl_fetch.

If my website doesn't send cookies, everything is being cached fine (60 secs at 
the moment). But When sending cookies, even with my unset cookie config, 
Varnish does not cache the pages.

What approach do I need to use to make this work or debug this? I think I'm 
missing something obvious, but what?

Regards,
Marko

_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to