Re: [whatwg/fetch] Integration with preload (PR #1342)

@annevk I've revised this, https://github.com/whatwg/html/pull/7260 would also need some changes to match, but I wanted to see that this is on the right track first.

The idea is that preloads are matched *before*  the fetch becomes parallel and overrides all the HTTP specific check as it's assumed they were done for the preloaded request.

An alternative to doing things this way is to have the preload list inside fetch, and have the HTML spec add to it / clear it. This might make things easier in terms of future potential things like supporting `Link` headers in workers, but I'm not sure if that should be a concern right now (also doing that is not difficult inside the HTML spec). 

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

Received on Thursday, 4 November 2021 09:28:14 UTC