Forcing Varnish to ignore a subdomain

Here's a handy tip to make Varnish ignore a subdomain and not cache its contents: modify your [code].vcl[/code] file to include the following:

[code]sub vcl_recv { if (req.http.Host == “sub.domain.com”) { return (pipe); } } [/code]