Varnish 4.x and conditional request

Dridi Boukelmoune dridi at varni.sh
Tue Jul 12 14:33:11 CEST 2016


On Tue, Jul 12, 2016 at 12:09 PM, Marcello Lorenzi <cello86 at gmail.com> wrote:
> Hi All,
> we're checking the possibility to avoid the checking for an amount of time
> the forwarding of the conditional requests to a backend servers and use the
> object cached if it's present on varnish storage.

You get this behavior by default if you use grace mode and have proper
conditional headers.

> Is it possible to force this caching via beresp.ttl and beresp.keep?

Once you go beyond the ttl and grace periods, there's no way to serve
the object from the cache. During the keep period, the object can only
be used for a conditional backend request.

Dridi



More information about the varnish-misc mailing list