Re: [whatwg/fetch] Update HTTPFetch algorithm to support new SW Handle Fetch returns (PR #1832)

@quasi-mod commented on this pull request.



>  
-    <ol>
-     <li><p>Set <var>fetchParams</var>'s <a for="fetch params">timing info</a>'s
-     <a for="fetch timing info">final service worker start time</a> to
-     <var>serviceWorkerStartTime</var>.
+    <p>If <var>fetchResponse</var> is non-null, then:
+     <ol>
+     <li><p>If<var>fetchResponse</var> is <a for=/>response</a>, then:
+      <ol>
+       <li><p>Set <var>response</var> to <var>fetchResponse</var>.
+       <li><p>Set <var>fetchParams</var>'s <a for="fetch params">timing info</a>'s
+       <a for="fetch timing info">final service worker start time</a> to
+       <var>serviceWorkerStartTime</var>.
+       <li><p>Set <var>fetchParams</var>'s <a for="fetch params">timing info</a>'s
+       <a for="fetch timing info">service worker timing info</a> to
+       <var>response</var>'s <a for="response">service worker timing info</a>.

Thanks. Actually, we already have an associated service worker timing info in the response, and was thinking that we did not need another associated one?

https://github.com/whatwg/fetch/blob/main/fetch.bs#L2508

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1832#discussion_r2209042641
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1832/review/3022856068@github.com>

Received on Wednesday, 16 July 2025 01:56:21 UTC