Fix nodejs max-age parsing, add TTL param for api data