Technically, bans are evaluated outside of vcl, after vcl_hash. We grab a
tentative obj, then test it, if it matches, we destroy the objcontinue
searching, otherwise we go to vcl_hit

-- 
Guillaume Quintard

On Jan 30, 2018 18:49, "Alexandros Kechagias" <
[email protected]> wrote:

> > ban() takes a string :-)
>
> D'oh! Thanks Guillaume, it works now. :-)
>
> The documentation says that:
> "Bans are checked when we hit an object in the cache, but before we
> deliver it." [1]
> I guess that's why obj.* is only available in vcl_hit and vcl_deliver,
> right?
>
> [1] http://varnish-cache.org/docs/4.0/users-guide/purging.html#bans
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to