Invalidate URL cache with http header

Guillaume Quintard guillaume at varnish-software.com
Wed Jul 5 12:00:16 CEST 2017


>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 <dridi at varni.sh> wrote:

> On Wed, Jul 5, 2017 at 10:38 AM, Quintin Par <quintinpar at gmail.com> 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
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170705/7c122126/attachment.html>


More information about the varnish-misc mailing list