> On 12 Apr 2018, at 12:25, Guillaume Quintard
> wrote:
>
> bereq.is_bgfetch?
2018-04-12 11:28 GMT+02:00 Danila Vershinin :
> Ah, I’m using Varnish 4.1, guess might have to look into >= 5.2.
Not necessary - is_bgfetch was back ported to 4.1, and
Ah, I’m using Varnish 4.1, guess might have to look into >= 5.2.
Thanks! :)
Best Regards,
Danila
> On 12 Apr 2018, at 12:25, Guillaume Quintard
> wrote:
>
> bereq.is_bgfetch?
>
> --
> Guillaume Quintard
>
> On Thu, Apr 12, 2018, 09:24 Danila Vershinin
bereq.is_bgfetch?
--
Guillaume Quintard
On Thu, Apr 12, 2018, 09:24 Danila Vershinin wrote:
> Couldn’t really find anything useful besides obj.hits which indirectly
> tells us it’s a background fetch. So:
>
> sub vcl_deliver {
>if (req.http.grace == "normal(limited)" &&
Couldn’t really find anything useful besides obj.hits which indirectly tells us
it’s a background fetch. So:
sub vcl_deliver {
if (req.http.grace == "normal(limited)" && obj.hits == 0 &&
req.http.Varied-Header = 'value1') {
set req.http.Varied-Header = 'value2’;
unset
So I guess I’m looking into having one background fetch trigger another
background fetch (to sequentially refresh different object variants). In this
fashion:
1. Client PURGE request will do softpurge.softpurge(); return(restart); with
GET method, etc. which will all lead to "return deliver()"
Hi,
That's indeed correct, a purge will kill all variations, and the restart
only fetches one.
The req.hash_always_miss trick however only kills/revalidate one variation.
At this moment, we have no way to purge/revalidate all the object under one
hash key.
--
Guillaume Quintard
On Wed, Apr
Hi Guillaume,
A bit puzzled on something. If we use Vary: by some header.. am I correct that
we need multiple restarts to refresh each object variation?
Since the background fetch would only refresh the variation that matched
initial purge request.
Sent from my iPhone
> On 9 Apr 2018, at
Hi Guillaume,
This should absolutely work. Thank you :)
Best Regards,
Danila
> On 9 Apr 2018, at 12:18, Guillaume Quintard
> wrote:
>
> You can purge then set the method to GET then restart. Would that work for
> you?
signature.asc
Description: Message
Hi,
You can purge then set the method to GET then restart. Would that work for
you?
Other way is to use req.hash_always_miss that will only revalidate if we
are able to fetch a new object.
--
Guillaume Quintard
On Sat, Apr 7, 2018 at 12:10 PM, Danila Vershinin wrote:
> Hi,