- From: Shunya Shishido <notifications@github.com>
- Date: Mon, 28 Jul 2025 23:34:51 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 29 July 2025 06:34:55 UTC
sisidovski left a comment (whatwg/fetch#1737) @annevk > Yes, as per https://fetch.spec.whatwg.org/#concept-filtered-response-opaque status will be 0. It does seem very concerning this would tell you for every subresource whether it has an ok status or not. That's not information we reveal for images today, for instance. Service workers can already look at the OK status inside the fetch handler, so it doesn't exceed what the current service worker can do. No information is newly revealed in this change. My previous comment looks incorrect. Maybe we can just check if the [status](https://fetch.spec.whatwg.org/#concept-response-status) is [ok status](https://fetch.spec.whatwg.org/#ok-status) or not. If the response is [opaque filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque), the status would be 0 regardless of the actual response. So the ok status check will fail anyway for the opaque response, and we think that behavior is correct. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1737#issuecomment-3130887242 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1737/c3130887242@github.com>
Received on Tuesday, 29 July 2025 06:34:55 UTC