halcyonCorsair/varnish-for-drupal — Issue #1: Cookie regexes
Author: halcyonCorsair
Created: 2012-02-26 06:01:15+00:00
State: open

per: http://drupal.org/node/1196916#comment-5654294

@halcyonCorsair: Thank you for putting together the vcl. It was a great help when migrating to Varnish 3.0.

But; there is an error in your cookie stripping logic. You have:

where it should be:

The first line; "set req.http.Cookie = ";" + req.http.Cookie;" is missing. Please refer to the whitelisting example on https://www.varnish-cache.org/trac/wiki/VCLExampleRemovingSomeCookies.

Without this extra line, the first cookie will never be removed.

Atle
http://newreach.no/