Adding support for custom refresh patterns and negative ttl