I am trying to preload XML via:
<link rel="preload" href="http://xyz.local/at_de/cartware_3dpicture/index/profile/id/5637566859.xml/" as="fetch" type="application/xml"/>
I receive an error message:
A preload for 'http://xyz.local/at_de/cartware_3dpicture/index/profile/id/5637566859.xml/' is found, but is not used because the request headers do not match.
The file I am trying to preload is normally fetched via XHR:
The upper request header is from preload, the beneath request header is from the original XHR.
Thanks for helping me!
Ran into the same problem, even after adding the CORS headers. In my case, the Accept
header was the crucial difference. Unless they're exactly identical, Chrome won't use the preload. Your Accept
header has a couple extra parameters, which might be the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With