Open jamiebuilds opened 1 year ago
@jamiebuilds Thanks for the report. Could you include the response headers you are seeing for these requests in DevTools?
Yeah, looks like it occurs when trying to prefetch https://deno.land/std
Do you have any browser extensions installed? What version of Chrome(ium) is that? Are you opted into any of the recent Chrome prefetching experiments (specifically omnibox-zero-suggest-prefetching
related ones)? We don't do any <link rel=prefetch
ourselves, so I am trying to figure out what is causing the prefetch.
I think the root cause is that the prefetch request is sent with an Accept
header that does not contain text/html
.
I am about 60% confident that this Chrome bug is the root cause: https://bugs.chromium.org/p/chromium/issues/detail?id=626081. It's quite interesting no one else has run into this so far. I think we can patch it by accepting Purpose: prefetch
as an alias to content-type: text/html
, but that is quite ugly :(
@jamiebuilds Can you still reproduce on https://dotland-b044p0zhns7g.deno.dev/std@0.153.0 ?
Ah! I didn't have any flags, but I did have the Quicklink Chrome extension, I had forgotten about it. (Edit: I will also report to them)
It does still reproduce in your new branch
Ok, I'll try with that extension!
This is happening very consistently for me
https://user-images.githubusercontent.com/952783/187500163-1a174ff8-7336-41b5-b984-1184876616b2.mov