Skip to content
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 support on storage entities #29

Open
PhilipSkinner opened this issue Mar 27, 2020 · 0 comments
Open

Etag support on storage entities #29

PhilipSkinner opened this issue Mar 27, 2020 · 0 comments

Comments

@PhilipSkinner
Copy link
Owner

PhilipSkinner commented Mar 27, 2020

Ensure that etags are supported on storage entities, supporting both the response of the version with the etag header and the use of if-match headers on:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE

On modification operations this is to deal with modification conflicts and should return a 409 Conflict status code.

On fetching a single resource, the if-match header can be used to determine if the resource has changed - if it has not then a 304 Not Modified is to be returned.

The use of * as the if-match header value means either "ignore the version identifier" or "fetch the latest" - depending upon the incoming HTTP request method.

If the if-match header is omitted then it is to be as though the client sent the value * within it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant