- From: Graham Cox <graham@grahamcox.co.uk>
- Date: Wed, 5 Aug 2026 09:07:35 +0100
- To: Martin Thomson <mt@lowentropy.net>
- Cc: ietf-http-wg@w3.org, "Julian F. Reschke" <julian.reschke@gmx.de>
- Message-ID: <CAPBurBs2mYP=wRqW0Oj7UPKQnzb5fiGNtwKNdg=vN+P3=JezXw@mail.gmail.com>
> It occurs to me that maybe an `If-Conditional-Supported: If-None-Match, ...` conditional field would be a good feature if the group wanted to fix conditionals. That suffers the same chicken-and-egg issue, of course. (Apologies if this was covered - I missed the start of this thread) Maybe this is backwards. Maybe a better solution is, e.g., a response field *Conditional-Supported* that the server can include in a response to indicate the supported conditionals for that resource. So then you get: Conditional-Supported: If-None-Match, If-Match, If-DOW And based on that, the client now knows that it can safely send the *IF-DOW* conditional header to ensure changes are only made on Tuesdays. That also has the advantage that you can vary it per resource if you wish. For example, some resources might support *If-DOW *and others from the same server might not. Cheers -- Graham Cox On Wed, 5 Aug 2026 at 07:04, Martin Thomson <mt@lowentropy.net> wrote: > On Wed, Aug 5, 2026, at 15:40, Julian Reschke wrote: > > So: does adding new conditionals really work? > > The best answer I have for that rounds to ¯\_(ツ)_/¯ > > The second best answer is to point out that any new conditional field will > be ignored, which is already the case for the existing conditionals. So > you have to be able to deal with the resource not paying attention to the > conditional. > > For a safe request, this is probably not a big deal, because the cost > associated with the conditional being ignored reduces to a bit of wasted > bandwidth. > > For a request that seeks to avoid modifying the state of a resource based > on a condition, I suspect that the only way to manage this is prior > knowledge that the resource will pay attention to the conditional field. > Otherwise, your request with `If-DOW: Tuesday` arrives on a day of the week > other than Tuesday, the resource will go ahead with the rest of the change, > which might not have been what you intended. > > It occurs to me that maybe an `If-Conditional-Supported: If-None-Match, > ...` conditional field would be a good feature if the group wanted to fix > conditionals. That suffers the same chicken-and-egg issue, of course. > > The other thought is that maybe a new content-coding might be minted to > protect against unwanted modification of resources that might not support > conditionals, if support for the content-coding and the conditional could > be coupled. That is, you send `If-Colour: contains-u` and > `Content-Encoding: add-u` at the same time, such that a resource that > understands the content coding (which might be a simple or even no-op > transformation, despite the name) is also required to apply the conditional > if it removes the coding. Resources that don't understand the coding would > be forced (?) to discard the request. > >
Received on Wednesday, 5 August 2026 08:07:53 UTC