Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: turn CORS-preflight cache into a list #744

Merged
merged 4 commits into from Aug 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions fetch.bs
Expand Up @@ -3437,9 +3437,9 @@ optional <i>CORS flag</i> and <i>CORS-preflight flag</i>, run these steps:
<a for=request>method</a> is a not a <a>CORS-safelisted method</a> or <var>request</var>'s
<a>use-CORS-preflight flag</a> is set.

<li>There is at least one <a for=list>item</a> in the <a>unsafe-CORS request-header names</a>
<li>There is at least one <a for=list>item</a> in the <a>CORS-unsafe request-header names</a>
with <var>request</var>'s <a for=request>header list</a> for which there is no
<a>header-name cache match</a> using <var>request</var>.
<a>header-name cache entry match</a> using <var>request</var>.
</ul>

<p>Then:
Expand Down Expand Up @@ -4516,12 +4516,12 @@ run these steps:
<var>request</var>, <var>max-age</var>, <var>method</var>, and null.

<li><p>For each <var>headerName</var> in <var>headerNames</var> for which there is a
<a>header-name cache match</a> using <var>request</var>, set matching entry's
<a>header-name cache entry match</a> using <var>request</var>, set matching entry's
<a for="cache entry">max-age</a> to <var>max-age</var>.

<li><p>For each <var>headerName</var> in <var>headerNames</var> for which there is no
<a>header-name cache match</a> using <var>request</var>, <a>create a new cache entry</a> with
<var>request</var>, <var>max-age</var>, null, and <var>headerName</var>.
<a>header-name cache entry match</a> using <var>request</var>, <a>create a new cache entry</a>
with <var>request</var>, <var>max-age</var>, null, and <var>headerName</var>.

<li><p>Return <var>response</var>.
</ol>
Expand Down Expand Up @@ -4609,7 +4609,7 @@ is <var>request</var>'s <a for=request>current url</a>.
and its <a for="cache entry">method</a> is <var>method</var> or `<code>*</code>`.

<p>There is a <dfn id=concept-cache-match-header>header-name cache entry match</dfn> for
<var>headerName</var> using <var>request</var> when there is a <a>entry entry</a> in the user
<var>headerName</var> using <var>request</var> when there is a <a>cache entry</a> in the user
agent's <a>CORS-preflight cache</a> for which there is a <a>cache entry match</a> with
<var>request</var> and one of

Expand Down