- From: Graham Cox <graham@grahamcox.co.uk>
- Date: Wed, 5 Aug 2026 09:45:56 +0100
- To: Martin Thomson <mt@lowentropy.net>
- Cc: ietf-http-wg@w3.org, "Julian F. Reschke" <julian.reschke@gmx.de>
- Message-ID: <CAPBurBta4a11a0aovNvoF38YeZOtw8X6F9=R=f81VfB8DCkZMA@mail.gmail.com>
> The problem for conditional state-changing requests is that this doesn't allow the client to make the state change at the resource conditional. You only learn after the event. Sure, you could use that sort of design with something like OPTIONS to probe first, but then you are doing a preflight on every resource that you might want to try such a request on. I was thinking that you'd include it on the GET response when the client loaded the resource in the first place. So the flow would be: * Client - GET /someResource * Server - Returns /someResource with new *Conditional-Supported *header * Client - PUT/PATCH/DELETE /someResource In this case, the client now knows which conditionals are supported for this resource. It also works for subsequent GETs so the client knows if things like *If-None-Match *and *If-Modified-Since *will work, though as said earlier that's less of an issue since the only real benefit is less bandwidth used in the response. Of course, it doesn't work if there wasn't an initial GET call, or if the supported conditionals change between the GET and PUT/PATCH/DELETE - e.g. if there was a long enough gap between the two. But assuming that any updating request needed to have a copy of the original to know what to update then it *should* work... (And remembering as well that, since it doesn't currently exist, there would have to be an assumption that not all clients / servers support it so you'd need to handle that case anyway) Cheers -- Graham Cox On Wed, 5 Aug 2026 at 09:38, Martin Thomson <mt@lowentropy.net> wrote: > On Wed, Aug 5, 2026, at 18:07, Graham Cox wrote: > > 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. > > The problem for conditional state-changing requests is that this doesn't > allow the client to make the state change at the resource conditional. You > only learn after the event. Sure, you could use that sort of design with > something like OPTIONS to probe first, but then you are doing a preflight > on every resource that you might want to try such a request on. >
Received on Wednesday, 5 August 2026 08:46:12 UTC