Ignore a specific cookie
// Ignore "example" cookie
set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)example=[^;]*", "");
Strip Cookies From a Specific URL
sub vcl_recv {
if (req.http.host ~ "^(www.)?example.com" && req.url ~ "^/nocache") {
}
}
sub vcl_fetch {
if (req.http.host ~ "^(www.)?example.com" && req.url ~ "^/nocache") {
unset beresp.http.set-cookie;
}
}
Real-time count of URL's passing to the backend
varnishtop -b -i TxURL
Real-time count of Host headers being received
varnishtop -i RxHeader -I Host
Default varnish.vcl
default.vcl