Dynamically set ttl based on cache-control header
dridi at varni.sh
Tue Nov 15 19:03:34 CET 2016
On Tue, Nov 15, 2016 at 6:32 PM, Star Dot <stardothosting at gmail.com> wrote:
> We have a django site that will be determining the cache times via setting
> the cache-control header. I want varnish to read this header and dynamically
> set the TTLs for the cache time based on that header.
> Is there an easy way of doing this or is this even possible at all?
It's the default, you should see it with varnishlog. Varnish being a
proxy s-maxage has precedence.
More information about the varnish-misc