-
Notifications
You must be signed in to change notification settings - Fork 24
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
ETag is not implemented properly #31
Comments
You're right, without My concern right now is, is it worth to? Why not remove it and just use |
@Kikobeats By just using If you don't mind I'd like to propose a PR with this 😄 |
I'll be a pleasure to accept a PR about this 🙏 |
I think that this library has some wrong assumptions on the
ETag
header. As I see the code, theETag
is being set on the response, but it's never read afterwards (on the request).The library should look at the
If-None-Match
header and compare it to the cached responseETag
and return304 Not Modified
when they're the same. Now, the library always sends data after the response expired which is a waste.The text was updated successfully, but these errors were encountered: