New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(http): Etag support #22302
feat(http): Etag support #22302
Conversation
Does this now return the previous/existing response in the body with a 304? What's the use case for this? In npm for example, where etags are already successfully used, we don't cache the raw http body response. We cache the getPkgReleases response. |
I am refactoring this Npm code to make all the data transformation to be performed inside the It won't protect us from malformed data from cache (since we skip the validation/transform), but type system will require us to have
I want to use it for long-term caching of |
I'm not sure you'll be able to drop /versions because we will be too slow if we stick to rate limits. Are you assuming that 304 won't count towards rate limit? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should move the paginate logic to the getJson
function, as it's the only one which will work anyways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM beside the open discussion
Please merge this one, it's blocker for me |
🎉 This PR is included in version 35.101.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: