Skip to content

Commit b6c6283

Browse files
authored
Add "validated" to response's cache state
For Resource Timing's transferSize. Corresponding RT PR: w3c/resource-timing#272. Tests: https://chromium-review.googlesource.com/c/chromium/src/+/2878693.
1 parent 3c0dd16 commit b6c6283

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fetch.bs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,9 @@ message as HTTP/2 does not support them.
19381938
<a for=/>response</a>'s <a for=response>body</a> are always null.
19391939

19401940
<p>A <a for=/>response</a> has an associated
1941-
<dfn export for=response id=concept-response-cache-state>cache state</dfn> (the empty string or
1942-
"<code>local</code>"). Unlesss stated otherwise, it is the empty string.
1941+
<dfn export for=response id=concept-response-cache-state>cache state</dfn> (the empty string,
1942+
"<code>local</code>", or "<code>validated</code>"). Unlesss stated otherwise, it is the empty
1943+
string.
19431944

19441945
<p class=note>This is intended for usage by <cite>Service Workers</cite> and
19451946
<cite>Resource Timing</cite>. [[SW]] [[RESOURCE-TIMING]]
@@ -4895,6 +4896,8 @@ steps. They return a <a for=/>response</a>.
48954896

48964897
<li><p>Set <var>response</var> to <var>storedResponse</var>.
48974898

4899+
<li><p>Set <var>response</var>'s <a for=response>cache state</a> to "<code>validated</code>".
4900+
48984901
<li><p><a for=/>Update timing info from stored response</a> given <var>fetchParams</var>'s
48994902
<a for="fetch params">timing info</a> and <var>response</var>.
49004903
</ol>

0 commit comments

Comments
 (0)