I’m running varnish4 and had to tweak the config.
if ( req.method == "POST" || req.http.cookie ~ "smart_varnish_bypass") {
return( pipe );
}
If you use pass varnish may still strip cookies from the other subroutines which will run after a pass. pipe should be used instead of pass here to avoid accidentally doing that if the vcl in use isn’t precise enough. if you want to entirely bypass varnish pipe is the way to go.
]]>