Softpurge (set ttl to 0 instead of deleting)


#1

Now that there is support for stale-while-revalidate and stale-if-error it would be great if we could set the TTL of cached objects to 0 instead of deleting them. That way stale objects could still be served while revalidation can run async in the background.
Something like softpurge from https://github.com/varnish/varnish-modules


#2

Unfortunately that isn’t currently possible. However, what I would recommend is to use a form of cache busting instead: https://www.keycdn.com/support/what-is-cache-busting/