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

Consider using a better Accept header when fetching modules #41

Closed
kitsonk opened this issue Jan 5, 2022 · 1 comment · Fixed by #42
Closed

Consider using a better Accept header when fetching modules #41

kitsonk opened this issue Jan 5, 2022 · 1 comment · Fixed by #42

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Jan 5, 2022

Currently the following header is sent when fetching modules:

Accept: */*

Which makes it very difficult for a server to do content negotiation. Either a header of:

Accept: application/javascript, application/typescript, text/javascript, text/typescript, text/jsx, text/tsx, application/json;q=0.9, text/plain;q=0.8, application/octet-stream;q=0.8

Or:

Accept: application/javascript, application/typescript, text/javascript, text/typescript, text/jsx, text/tsx, application/json;q=0.9, text/plain;q=0.8, application/octet-stream;q=0.8, */*;q=0.7

Would allow better negotiation of content for a web server.

Ref: denoland/deno#13287

@bnoordhuis
Copy link
Contributor

#42 - I picked the first one.

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

Successfully merging a pull request may close this issue.

2 participants