Forcing Varnish to ignore a subdomain

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

sub vcl_recv { if (req.http.Host == "sub.domain.com") { return (pipe); } }
comments powered by Disqus