max age is in seconds