return(refresh) from vcl_hit / Re: [PATCH] Add "hash_always_expire" option to treat any existing objects as expired

Jingyi Wei jyw at
Sat Jun 6 19:59:46 CEST 2015

Hello Nils,

Thanks for your email. I think the difficulty of the return(refresh)
approach might be: VRY_Finish(req, DISCARD) will run instead of
VRY_Finish(req, KEEP) in cnt_lookup(), and do not fetch again if there
is already a busy object after VCL_hit_method().


On 05/18/2015 07:33 AM, Nils Goroll wrote:
> Hi Jingyi,
> this has been discussed on irc today:
> You have come up with a useful idea to allow refresh of a cache object despite a
> cache hit, which we want to implement. We'd prefer a different implementation
> though and will probably look in the direction of a return(refresh) from vcl_hit.
> Cheers, Nils

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-dev mailing list