No-cache but still a HIT

Hugo Cisneiros (Eitch) hugo.cisneiros at
Tue Oct 9 01:28:03 CEST 2012

On Mon, Oct 8, 2012 at 5:45 AM, Aanchal Gera <aanchal.gera at> wrote:
> Ohh, Is it!!!
> So, what would be the best way to tell Varnish that I don't want to cache an
> ESI fragment?

In your case, something like this on vcl_recv:

if (req.http.cache-control ~ "no") { return (pass); }

If you have other pages that returns the http header cache-control:
no, you have to be more specific at the if statement (req.url or
something like that).


More information about the varnish-misc mailing list