varnish cache hit & miss header

sub vcl_deliver {

if (obj.hits > 0)
{ set resp.http.Varnish-Cache = “HIT”; }
else
{ set resp.http.Varnish-Cache = “MISS”; }

}

Add a Comment

Your email address will not be published. Required fields are marked *

*