Thanks for the info,
In the interim I'm just doing this:
sub vcl_hit {
if (obj.ttl < 0s && ( obj.ttl + obj.grace > 0s ) ) {
set req.http.X-IN-GRACE = "true";
}
}
I realize there is a race condition between my vcl and the builtin.vcl
fallthrough, but it shouldn't affect my use case.
Thanks again,
Craig
On 2017-11-05 16:50, Pål Hermunn Johansen wrote:
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
<[email protected]>:
Hi,
No, bereq.is_bgfetch was added in 5.2.
Cheers,
--
Guillaume Quintard
On Fri, Nov 3, 2017 at 4:42 PM, Craig Servin
<[email protected]>
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
[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
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc