[issue2551386] Add if-none-match header support for REST

John Rouillard <[email protected]> Fri, 10 Jan 2025 01:31:08 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

If-Match conditional headers are supported by the rest code.

However If-None-Match is not supported. This is shown by running redbot.org against
.../rest/data/file/1. It reports:

  An If-None-Match conditional request returned the full content unchanged.

  HTTP allows clients to make conditional requests to see if a copy that they
  hold is still valid. Since this response has an ETag, clients should be able
  to use an If-None-Match request header for validation.

  REDbot has done this and found that the resource sends the same, full response
  even though it hadn't changed, indicating that it doesn't support ETag validation.

Also etag support/if-none-match/if-match should be extracted from rest.py into
it's own module so it can be used by the http html or xml endpoints.

----------
components: API
messages: 8251
nosy: rouilj
severity: normal
status: new
title: Add if-none-match header support for REST
type: behavior

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551386>
_________________________________________________