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

> Looking at this one concern I have is that we preload for X and fulfill for Y. Is that possible? Can I preload something pretending it's going to be used as an image but then have it execute as a script?

That's not possible. See https://html.spec.whatwg.org/multipage/links.html#consume-a-preloaded-resource
The key for the preload cache includes the destination (the `as` attribute). So effectively each `as` has its own map.


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

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

Received on Monday, 20 January 2025 17:05:59 UTC