Skip to content

Checking if we have the up to date document _rev #2996

Answered by jjrodrig
dsebastien asked this question in General
Discussion options

You must be logged in to vote

Yo can use the same mechanism interacting with CouchDB. Use HEAD operation for a document

HEAD /db/doc
HEADER If-None-Match="<rev>"

If you have the same revision than the one is the current winning revision, it will respond 304 Not Modified

You'll find the same behaviour with the GET /db/doc operation

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wohali
Comment options

Answer selected by janl
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants