Ok, You just got me curious in the middle of the night, and after I looked at your link I conveniently remembered seeing something about this before.
https://www.varnish-cache.org/docs/4.0/users-guide/vcl-grace.html#grace-mode Looking again at your logs after reading this, it makes sense that you'd always miss. What happens if you remove vcl_hit from your VCL and entirely leave it to the built-in vcl_hit? Dridi On Thu, Dec 11, 2014 at 11:48 PM, <[email protected]> wrote: > > > On Thu, Dec 11, 2014, at 02:36 PM, Dridi Boukelmoune wrote: >> My guess is both a mistake from you and a bug in varnish. >> >> In vcl_hit you should "return(deliver)" instead of "return(fetch)". > > i'm working with shameless cribbing from supsected-to-work-well vcl's > > this one > > > https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl > > does include the > > vcl_hit() { > ... > - return (deliver) > + return (fetch) > } > > Making JUST that change in MY, current vcl still makes no difference; I still > see the MISS. > > BUT, switching completely to that vcl DOES do the trick -- I see HIT on the > image. > > Now, a matter of piecemeal substitution to find & understand the actual > problem. > _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
