A Few Questions

Tollef Fog Heen tfheen at varnish-software.com
Mon Jul 11 11:03:29 CEST 2011


]] Jorge Nerín 

| > sub vcl_deliver {
| >    if (obj.hits > 1) {
| >        set resp.http.X-Cache-Hit = "true";
| >    } else {
| >        set resp.http.X-Cache-Hit = "false";
| >    }
| > }
|
| Shouldn't it be obj.hits > 0?

Yeah, it probably should, I thought we set it to 1 at first, but we
don't.

-- 
Tollef Fog Heen
Varnish Software
t: +47 21 98 92 64




More information about the varnish-misc mailing list