Softpurge (set ttl to 0 instead of deleting)


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


Unfortunately that isn’t currently possible. However, what I would recommend is to use a form of cache busting instead: