apollo-datasource-http
apollo-datasource-http copied to clipboard
[Proposal] Make the maxTtlIfError optional
In some of the case we might not need or event want the maxTtlIfError to work, it would be nice if we could omit it in the configuration and thus make sure it's not used by the code.
The temporary workaround might be using same ttl value for both maxTtlIfError and maxTtl, but this is just wasting the cache memory.
Hi, I am open to a PR that makes this option configurable globally and per request.