diff --git a/fetch.bs b/fetch.bs index 5e7d714f6..223feb402 100644 --- a/fetch.bs +++ b/fetch.bs @@ -202,13 +202,15 @@ lt="authentication entry">authentication entries (for HTTP authentication).
local
", or "validated
"
A fetch timing info is a struct used to maintain timing @@ -2012,11 +2014,6 @@ message as HTTP/2 does not support them.
The source and length concepts of a network's response's body are always null. -
A response has an associated
-cache state (the empty string,
-"local
", or "validated
"). Unlesss stated otherwise, it is the empty
-string.
-
This is intended for usage by Service Workers and Resource Timing. [[SW]] [[RESOURCE-TIMING]]
If request's timing allow failed flag is unset, then set - internalResponse's timing allow passed flag. + fetchParams's timing allow passed to true.
If response is not a network error and any of the following returns @@ -4180,9 +4173,8 @@ steps: controller, terminate the ongoing fetch with the aborted flag set.
To report timing for a fetch controller
-controller, given a response response, a
-global object global, and a string initiatorType
-(default "other
"), run these steps:
+controller, given a global object global, and a
+string initiatorType (default "other
"), run these steps:
Set fetchParams's timing info reported to true. -
Let timingInfo be fetchParams timing info. -
Let cacheState be response's cache state. +
Let cacheState be fetchParams's cache state.
If response's timing allow passed flag is not set, then: +
If fetchParams's timing allow passed is false, then:
Set timingInfo to a the result of creating an opaque timing info for @@ -4215,8 +4204,9 @@ steps: relevant settings object's cross-origin isolated capability. -
Mark resource timing for timingInfo, originalURL, - initiatorType, global, and cacheState. +
Mark resource timing for timingInfo, fetchParams's + request's URL, initiatorType, + global, and cacheState.
Set response to storedResponse. -
Set response's cache state to "local
".
+
Set fetchParams's cache state to "local
".
Let revalidateRequest be a clone of request. @@ -5016,7 +5006,7 @@ steps. They return a response. chapter of HTTP Caching [[!HTTP-CACHING]].
Otherwise, set response to storedResponse and set
- response's cache state to "local
".
+ fetchParams's cache state to "local
".
Set response to storedResponse. -
Set response's cache state to "validated
".
+
Set fetchParams's cache state to
+ "validated
".
Update timing info from stored response given fetchParams's timing info and response. @@ -7472,9 +7463,8 @@ method steps are:
Abort fetchController. -
Let handleFetchDone given response response be to
- report timing for fetchController, with
- response, globalObject, and "fetch
".
+
Let handleFetchDone be to report timing for
+ fetchController, with globalObject, and "fetch
".
Set fetchController to the result of fetching