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.
> 
> Case 1 is already handled in QUERY with the "Location" response field.
> 
> 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.)
 > ...

Not really:

An origin server parses the payload into some kind of data model anyway, 
so it can "aggressively" normalize (it needs to understand the query 
syntax after all (*)), Optimally it exposes the "equivalent" resource, 
in which case the client can just use normal GET requests (no payload), 
until the server decides it doesn't want to serve that resource anymore.

(*) plus content metadata

A cache can still normalize a query if it knows the syntax; be it based 
on JSON, XML etc.

It even can normalize application/x-www-form-urlencoded payloads in a 
limited way (but see also 
https://httpwg.org/http-extensions/draft-ietf-httpbis-no-vary-search.html)

Best regards, Julian

Received on Wednesday, 1 July 2026 10:07:27 UTC