diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-04 12:41:43 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-04 12:41:43 +0300 |
commit | 60e4a9d40301e932471c3ebbfd8567cb8cc3041a (patch) | |
tree | adac45530d1e9ca0a7d89048515e77cd9ef306d2 /docs | |
parent | ed518b1cdcf6b8f8135804706204c17a2f732ccc (diff) |
Implement correct ETag support
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ocs-endpoint-v2.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/ocs-endpoint-v2.md b/docs/ocs-endpoint-v2.md index 5b7c075..5b2038b 100644 --- a/docs/ocs-endpoint-v2.md +++ b/docs/ocs-endpoint-v2.md @@ -4,6 +4,7 @@ * :new: Support for icons was added with capability-entry `icons` * :new: Support for [Rich Object Strings](https://github.com/nextcloud/server/issues/1706) was added with capability-entry `rich-strings` +* :new: ETag/If-None-Match are now evaluated and respond with `304 Not Modified` and empty body when unchanged. ## Checking the capabilities of the server @@ -93,7 +94,12 @@ The user needs to be identified/logged in by the server. Then you can just run a } ``` -**Note:** If the HTTP status code is `204` (No content), you can slow down the polling to once per hour. This status code means that there is no app that can generate notifications. +### Response codes + +Status | Explanation +---|--- +`204 No Content` | please slow down the polling to once per hour, since there are no apps that can generate notifications +`304 Not Modified` | The provided `If-None-Match` matches the ETag, response body is empty ### Specification |