Skip to content

Commit d5c3d8b

Browse files
committed
Change the Access-Control-Max-Age default to 5
Already covered by web-platform-tests. Fixes #990.
1 parent 8ca6148 commit d5c3d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fetch.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,7 @@ if the <a>CORS protocol</a> is understood. It uses `<code>OPTIONS</code>` as
26012601
<a for=response>URL</a> for the purposes of the <a>CORS protocol</a>.
26022602

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

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

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

0 commit comments

Comments
 (0)