[Webkit-unassigned] [Bug 236009] New: preload as=fetch loads json resource again during javascript fetch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 2 02:55:56 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=236009
Bug ID: 236009
Summary: preload as=fetch loads json resource again during
javascript fetch
Product: WebKit
Version: Safari 15
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tobias at tangemann.org
CC: beidson at apple.com
Safari 15.3 (17612.4.9.1.5) on MacOS loads the resource specified in the preload and again with fetch in the javascript code.
XMLHttpRequest also loads the resource again not using the preloaded data.
Minimal example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Preload-Test</title>
<meta charset="utf-8">
<link rel="preload" href="data.json" as="fetch" type="application/json" crossorigin>
</head><body>
<script>
fetch('data.json',
{
credentials: 'same-origin',
mode: 'cors'
}).then(res => console.log(res));
</script>
</body></html>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220202/5ce56ea8/attachment.htm>
More information about the webkit-unassigned
mailing list