Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Accept-Headers for prefetch (link rel="prefetch") and regular request #255

Open
jacobloveless opened this issue Mar 8, 2022 · 0 comments

Comments

@jacobloveless
Copy link

I believe this is lower level issue with the browser, but adding it here as well.
When a prefetch is sent, the accept header does not fully match what the browser would send.

E.g. in Chrome 99.0.4844.51

Prefetch request has:

accept: application/signed-exchange;v=b3;q=0.7,*/*;q=0.8

But visiting the page results in an accept header of:

accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

Since the accept header may be used to determine the response type (e.g. here the notation of avif would result in a differing set of HTML) , the prefetch is effectively unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant