Does adding new conditionals really work?

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 06:03:38 UTC