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

Implement ETag/ HEAD #101

Closed
nolanlawson opened this issue Aug 24, 2014 · 2 comments
Closed

Implement ETag/ HEAD #101

nolanlawson opened this issue Aug 24, 2014 · 2 comments

Comments

@nolanlawson
Copy link
Member

I honestly have no idea what benefit this would give, but why not?

@marten-de-vries
Copy link
Member

On the benefit thing: The ETag is the revision of the document where applicable in CouchDB. A pattern I've seen is sending a HEAD to a document url, followed by a DELETE with a ?rev= obtained from the ETag of the first request as a as-fast-as-possible way to remove a document nothing but an id is known about.

marten-de-vries added a commit that referenced this issue Sep 20, 2014
- #63 (Add the "port" to the Location header)
- #101 (Implement ETag/HEAD, MD5 sums for attachments & revisions for
  documents)
- 'curl friendly' responses (newline after json)
- Removed race conditions for _users/_replicator dbs
- Removes express-added ';charset=utf-8' where relevant
- Rewrite bug fix (doesn't use query params for routing any longer)
- Support 'If-Match' header as a way of supplying a revision. Also
  return an error when multiple conflicting revs are given.
- added a 404 handler for the few rare use cases where the
  'db file not found' error isn't returned.
marten-de-vries added a commit that referenced this issue Sep 24, 2014
- #63 (Add the "port" to the Location header)
- #101 (Implement ETag/HEAD, MD5 sums for attachments & revisions for
  documents)
- 'curl friendly' responses (newline after json)
- Removed race conditions for _users/_replicator dbs
- Removes express-added ';charset=utf-8' where relevant
- Rewrite bug fix (doesn't use query params for routing any longer)
- Support 'If-Match' header as a way of supplying a revision. Also
  return an error when multiple conflicting revs are given.
- added a 404 handler for the few rare use cases where the
  'db file not found' error isn't returned.
@marten-de-vries
Copy link
Member

Fixed in 4b0ef40 as far as it makes sense.

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

2 participants