replaced condition['max-age'] by delay.

Simpler API