Conversation
If a value is set here, this TTL will be used regardless of the HTTP cache directives. This can be useful in a case like a CLI, where repeated runs within some defined time range should re-use HTTP responses, even if those responses themselves are cacheable according to the server.
chris-martin
approved these changes
Mar 10, 2026
Member
Author
|
Oops, this should've been a major bump. I was thinking of it as a (backwards-compatible) addition, but it's not since it's changing a record type that we're not encapsulating construction of, which is breaking. I'm inclined to not worry about it, but let me know if you feel I should release a major and deprecate the incorrect minor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add forceTTL to cache settings
5066739
If a value is set here, this TTL will be used regardless of the HTTP
cache directives. This can be useful in a case like a CLI, where
repeated runs within some defined time range should re-use HTTP
responses, even if those responses are not cacheable according to
the server.
Version bump
a061b22