Re: RFC 10008: caching QUERY without re-sending the request body

Am 30.06.2026 um 23:49 schrieb Ben Schwartz:
> In my view it's worth clarifying a distinction between cases where (1) 
> the same client is repeating an old QUERY, or (2) many clients are 
> issuing identical QUERYs.

How does that matter???

> Case 1 is already handled in QUERY with the "Location" response field.

It is even covered when there is no "equivalent resource" being exposed.

> Case 2 is somewhat special.  For it to be useful:
> * Many clients must be sending the same QUERY as many other clients.  
> (No IDs or timestamps.)
> * They must all be using a byte-identical encoding of the QUERY.  (No 
> JSON, unless everyone is normalizing it somehow.)
> * The QUERY must be pretty large.
>    - If the client is optimizing for latency, it has to be larger than 
> bandwidth*RTT (several kilobytes at least)
>    - If the client is optimizing for bandwidth, it probably still needs 
> to be a few hundred bytes to outweigh the overhead of the extra packet 
> exchange, and larger than that to represent a material savings in 
> comparison to the response and other costs.
> * The server needs to know that the QUERY is likely to be repeated, so 
> the response is cached.

Or a cache... How is this different from GET?

> I can imagine some specialized use cases where all these conditions 
> might be true, such as a virus scanner service.  The harder question, I 
> think, is: why should we try to model this in HTTP?  Why not just let 
> the application deal with it?
> 
> It would help to know more about your motivating use case.
> 
> --Ben

Indeed.

Best regards, Julian

Received on Thursday, 2 July 2026 13:12:03 UTC