Re: [whatwg/fetch] Skip unnecessary checks when we have a preloaded response candidate in main fetch (PR #1803)

@noamr You're right. Although I don't have strong opinions on how early-hints should work with regards to CSP, I think the same argument, that we are using for allowing preloads that were previously fetched to continue to work despite a CSP update, would apply here. Separating out early-hints would also be an option, but could also result in more complexity and differing behavior to regular preloads which may be confusing.

Practically, this would mean that if someone wants to apply a particular CSP policy to a hint, then that should have come with or before the 103 response itself.

This would update the behavior that was discussed in https://github.com/httpwg/http-extensions/issues/687.

Open to thoughts here, the primary goal here is to enable more efficient use of preloaded content.

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

Message ID: <whatwg/fetch/pull/1803/c2608846009@github.com>

Received on Thursday, 23 January 2025 04:45:56 UTC