if getMaxAge return 0, $ttl should be 0