Skip to content

Commit

Permalink
Change the Access-Control-Max-Age default to 5
Browse files Browse the repository at this point in the history
Already covered by web-platform-tests.

Fixes #990.
  • Loading branch information
annevk committed Jan 16, 2020
1 parent 8ca6148 commit d5c3d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@ if the <a>CORS protocol</a> is understood. It uses `<code>OPTIONS</code>` as
<a for=response>URL</a> for the purposes of the <a>CORS protocol</a>.

<dt>`<dfn export http-header id=http-access-control-max-age><code>Access-Control-Max-Age</code></dfn>`
<dd><p>Indicates how long the information provided by the
<dd><p>Indicates the number of seconds (5 by default) the information provided by the
`<a http-header><code>Access-Control-Allow-Methods</code></a>` and
`<a http-header><code>Access-Control-Allow-Headers</code></a>` <a for=/>headers</a> can be cached.
</dl>
Expand Down Expand Up @@ -4955,7 +4955,7 @@ run these steps:
`<a http-header><code>Access-Control-Max-Age</code></a>` and <var>response</var>'s
<a for=response>header list</a>.

<li><p>If <var>max-age</var> is failure or null, then set <var>max-age</var> to zero.
<li><p>If <var>max-age</var> is failure or null, then set <var>max-age</var> to 5.

<li><p>If <var>max-age</var> is greater than an imposed limit on
<a for="cache entry">max-age</a>, then set <var>max-age</var> to the imposed limit.
Expand Down

0 comments on commit d5c3d8b

Please sign in to comment.