unset cookie in vcl_recv not working

Traian Bratucu traian.bratucu at eea.europa.eu
Thu Dec 16 16:10:23 CET 2010


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: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Marko Kruijer
Sent: Thursday, December 16, 2010 4:06 PM
To: varnish-misc at varnish-cache.org
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
varnish-misc at varnish-cache.org
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list