>From what I understand,
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_bypass
is saying that your code is equivalent to:

sub vcl_recv {
    if (req.http.cachepurge) {
        return (pass);
    }
}

I don't see a thing about purging, only bypassing the cache.

-- 
Guillaume Quintard

On Wed, Jul 5, 2017 at 10:46 AM, Dridi Boukelmoune <[email protected]> wrote:

> On Wed, Jul 5, 2017 at 10:38 AM, Quintin Par <[email protected]> wrote:
> >
> > Does hash_always_miss invalidate the cache?
>
> Not as such, it will fetch a new copy regardless and once cached it
> will shadow the previous one (that will eventually go away).
>
> There are other means of invalidation in VCL: ban and purge. I picked
> hash_always_miss because that's how I interpreted nginx's
> proxy_cache_bypass. But I didn't check the nginx documentation, pure
> speculation.
>
> Dridi
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to