Any way to know if you are in a backgound fetch in Varnish 4.1

Pål Hermunn Johansen hermunn at varnish-software.com
Sun Nov 5 22:50:00 UTC 2017


Actually, this was back ported in
https://github.com/varnishcache/varnish-cache/commit/bf167ec4cec2315 ,
and it will be part of 4.1.9 when it is released.

Pål

2017-11-03 16:45 GMT+01:00 Guillaume Quintard <guillaume at varnish-software.com>:
> Hi,
>
> No, bereq.is_bgfetch was added in 5.2.
>
> Cheers,
>
> --
> Guillaume Quintard
>
> On Fri, Nov 3, 2017 at 4:42 PM, Craig Servin <cservin-varnish at cromagnon.com>
> wrote:
>>
>> Hi All,
>>
>> Is there any way for me to know if I am in a background fetch while in
>> vcl_backend_response?
>>
>> I thought about setting a header in vcl_hit, but I thought there might be
>> a less hacky way to do it.
>>
>> Thanks,
>>
>> Craig
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


More information about the varnish-misc mailing list