Github user kxepal commented on the pull request:
https://github.com/apache/couchdb-chttpd/pull/111#issuecomment-206931507
@rnewson Everywhere all the time:
```
$ echo '{"foo":4}' | http put http://localhost:15984/db/test
HTTP/1.1 201 Created
Cache-Control: must-revalidate
Content-Length: 67
Content-Type: application/json
Date: Thu, 07 Apr 2016 14:13:26 GMT
Etag: "1-80d7ea9795ad67ad0e7a1e567c15314e"
Location: http://localhost:15984/db/test
Server: CouchDB/fc9acc2 (Erlang OTP/17)
X-Couch-Request-ID: 13cab4abd5
X-CouchDB-Body-Time: 0
{
"id": "test",
"ok": true,
"rev": "1-80d7ea9795ad67ad0e7a1e567c15314e"
}
```
```
$ echo '{"foo":4, "_rev": "1-ABC"}' | http put
http://localhost:15984/db/test?new_edits=false
HTTP/1.1 201 Created
Cache-Control: must-revalidate
Content-Length: 38
Content-Type: application/json
Date: Thu, 07 Apr 2016 14:13:39 GMT
Etag: "1-ABC"
Location: http://localhost:15984/db/test
Server: CouchDB/fc9acc2 (Erlang OTP/17)
X-Couch-Request-ID: 2c37ce6ed3
X-CouchDB-Body-Time: 0
{
"id": "test",
"ok": true,
"rev": "1-ABC"
}
```
Also [from
docs](http://docs.couchdb.org/en/latest/api/document/common.html#head--db-docid).
And many entries in wiki I'm lazy to search for. That's an old feature that
simplifies caching without adding some new entity to remember.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---