Skip to content

Commit 44f43f9

Browse files
committed
QUERY: improve description of CACHING, clarifying what is required
1 parent 7911b14 commit 44f43f9

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

draft-ietf-httpbis-safe-method-w-body.xml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,22 +331,32 @@ q=foo&limit=10&sort=-published
331331
</t>
332332
<t>
333333
The cache key for a QUERY request (see <xref target="HTTP-CACHING" section="2"/>) &MUST;
334-
incorporate the request content. When doing so, caches &SHOULD; first normalize request
335-
content to remove semantically insignificant differences, thereby improving cache
336-
efficiency, by:
334+
incorporate the request content.
335+
</t>
336+
<t>
337+
Caches <bcp14>MAY</bcp14> remove semantically insignificant differences first, thereby
338+
improving cache efficiency.
339+
</t>
340+
<t>
341+
For instance, by
337342
</t>
338343
<ul>
339-
<li>Removing content encoding(s) (<xref target="HTTP" section="8.4"/>).</li>
340-
<li>Normalizing based upon knowledge of format conventions, as indicated by any
344+
<li>removing content encoding(s) (<xref target="HTTP" section="8.4"/>).</li>
345+
<li>normalizing based upon knowledge of format conventions, as indicated by any
341346
media subtype suffix in the request's Content-Type field (e.g., "+json", see
342347
<xref target="RFC6838" section="4.2.8"/>).</li>
343-
<li>Normalizing based upon knowledge of the semantics of the content itself, as indicated by
348+
<li>normalizing based upon knowledge of the semantics of the content itself, as indicated by
344349
the request's Content-Type field.</li>
345350
</ul>
346351
<t>
347-
Note that any such normalization is performed solely for the purpose of generating a cache key; it
352+
Note that any such transformation is performed solely for the purpose of generating a cache key; it
348353
does not change the request itself.
349354
</t>
355+
<t>
356+
Clients can indicate, using the "no-transform" cache directive (<xref target="HTTP-CACHING" section="5.2.1.6"/>),
357+
that they wish that no such transformation happens (but note that this directive is just
358+
advisory).
359+
</t>
350360
</section>
351361

352362
<section title="Range Requests" anchor="range">
@@ -1046,6 +1056,7 @@ Last-Modified: Thu, 20 Feb 2025 06:10:01 GMT
10461056
</section>
10471057
<section title="Since draft-ietf-httpbis-safe-method-w-body-11" anchor="changes.since.11">
10481058
<ul>
1059+
<li>Improve description of caching, clarifying what is required (<eref target="https://github.com/httpwg/http-extensions/tree/reschke-3107"/>)</li>
10491060
<li>Address HTTPDIR/RF feedback on example appendix (<eref target="https://github.com/httpwg/http-extensions/issues/3114"/>)</li>
10501061
<li>Address HTTPDIR/RF feedback on abstract (<eref target="https://github.com/httpwg/http-extensions/issues/3121"/>)</li>
10511062
<li>Address HTTPDIR/RF feedback on introduction (<eref target="https://github.com/httpwg/http-extensions/issues/3122"/>)</li>

0 commit comments

Comments
 (0)