-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support ETag #221
Comments
Agreed, this is a good idea. With ketting 6 this should also be pretty achievable. |
Hi @reda-alaoui , Been a while since I looked at this, but wanted to confirm.. supporting etag and if-match is strictly for server-to-server right? |
Hi @evert , I was thinking of it for browser to server. |
@reda-alaoui forgive my igorance, but don't browsers already do this out of the box? if you send an |
I maybe the ignorant one here :) My purpose is to use the full power of http to let the server manage optimistic locking. Therefore I would like Ketting to send the information during a modifying http request call (e.g. PUT). If the etag of a PUT request does not match the Etag on the server, the server would fail with a conflict status code. But I may have made the wrong assumption that this use case was supported by the http spec. |
Ah the
There's also some tricky stuff to solve. In (just brainstorming a bit here) |
First of all, thank you for this amazing library!
I would like Ketting to support ETag for 2 reasons:
With each GET, Ketting would send ETag value in the If-None-Match header. On GET success, Ketting would store the ETag in the resource.
On each PUT, Ketting would send the ETag value in If-Match header. On PUT success, Ketting would refresh the ETag value.
The text was updated successfully, but these errors were encountered: