Uhm, doing the change so your vcl_hit looks like:
sub vcl_hit  { return(deliver); }

Works for me (tm).

Note that in your first email your vcl_hit unconditionally returned fetch:
sub vcl_hit  { return(fetch); }

P.D. I was the one doing the last update to this github template, and the
idea of returning fetch in vcl_hit was exactly for grace support.

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
>


-- 
Jorge NerĂ­n
<[email protected]>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to