varnish takes 30 seconds to return item in cache

Reinis Rozitis r at
Thu Dec 13 02:07:41 CET 2012

> Connecting to connected.
> HTTP request sent, awaiting response... 200 OK   ----> varnishlog shows 
> cache hit, but this step waits about 30 seconds

I'm afraid that provided information isnt enough - you should post the full 
varnishlog for that particular request (also 'varnishstat -1' output could 
help to indicate the issue).

p.s. a simple step for more easy debuging would be to add a cache hit 
header. For example:

sub vcl_deliver {
        if (obj.hits > 0) {
                set resp.http.X-Cache = "HIT";
        return (deliver);

this way you can run 'wget -S yoururl' and see if the cache is a hit on the 


More information about the varnish-misc mailing list