Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 10 additions & 45 deletions draft-ietf-httpbis-no-vary-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,51 +371,16 @@ Due to how the application/x-www-form-urlencoded parser canonicalizes query stri

So, for example, given any non-default value for `No-Vary-Search`, such as `No-Vary-Search: key-order`, we will have the following equivalences:

{: newline="true"}
<dl>
<dt>
<tt>https://example.com</tt><br>
<tt>https://example.com/?</tt>
</dt>
<dd>A null query is parsed the same as an empty string</dd>

<dt>
<tt>https://example.com/?a=x</tt><br>
<tt>https://example.com/?%61=%78</tt>
</dt>
<dd>Parsing performs percent-decoding</dd>

<dt>
<tt>https://example.com/?a=é</tt><br>
<tt>https://example.com/?a=%C3%A9</tt>
</dt>
<dd>Parsing performs percent-decoding</dd>

<dt>
<tt>https://example.com/?a=%f6</tt><br>
<tt>https://example.com/?a=%ef%bf%bd</tt>
</dt>
<dd>Both values are parsed as U+FFFD (�)</dd>

<dt>
<tt>https://example.com/?a=x&&&&</tt><br>
<tt>https://example.com/?a=x</tt>
</dt>
<dd>Parsing splits on <tt>&</tt> and discards empty strings</dd>

<dt>
<tt>https://example.com/?a=</tt><br>
<tt>https://example.com/?a</tt>
</dt>
<dd>Both parse as having an empty string value for <tt>a</tt></dd>

<dt>
<tt>https://example.com/?a=%20</tt><br>
<tt>https://example.com/?a=+</tt><br>
<tt>https://example.com/?a= &</tt>
</dt>
<dd><tt>+</tt> and <tt>%20</tt> are both parsed as U+0020 SPACE</dd>
</dl>
| URI A | URI B | Reason for Equivalence |
|---------------------------------+-------------------------------------+-----------------------------------------------------|
| `https://example.com` | `https://example.com/?` | A null query is parsed the same as an empty string |
| `https://example.com/?a=x` | `https://example.com/?%61=%78` | Parsing performs percent-decoding |
| `https://example.com/?a=é` | `https://example.com/?a=%C3%A9` | Parsing performs percent-decoding |
| `https://example.com/?a=%f6` | `https://example.com/?a=%ef%bf%bd` | Both values are parsed as U+FFFD (�) |
| `https://example.com/?a=x&&&&` | `https://example.com/?a=x` | Parsing splits on `&` and discards empty strings |
| `https://example.com/?a=` | `https://example.com/?a` | Both parse as having an empty string value for `a` |
| `https://example.com/?a=%20` | `https://example.com/?a= &` | `%20` is parsed as U+0020 SPACE |
| `https://example.com/?a=+` | `https://example.com/?a= &` | `+` is parsed as U+0020 SPACE |

# Caching {#caching}

Expand Down