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

New principle: Guidance on HTTP Headers #512

Open
johannhof opened this issue Oct 22, 2024 · 2 comments
Open

New principle: Guidance on HTTP Headers #512

johannhof opened this issue Oct 22, 2024 · 2 comments

Comments

@johannhof
Copy link
Contributor

This was brought up in our discussion of Storage Access Headers.

The design principles do not contain a lot of guidance on HTTP request / response headers. They only say that one should use structured fields, but it seems like there are a bunch of other considerations for headers that new user agent features should consider:

  • Naming - How should we name headers, what conventions do we follow?
  • Request size / overhead - how bad is the impact of new request headers on the web infrastructure, considering things like header compression, etc.?
  • Should we aim to reduce redundancy and omit request headers where possible, or consistently supply them for robustness?
  • Something about the trade-off between exposing headers vs. JS APIs

...and probably other things I'm not thinking of right now.

So, more headers guidance please :)

@ylafon
Copy link
Member

ylafon commented Oct 22, 2024

@annevk
Copy link
Member

annevk commented Oct 24, 2024

Same-origin policy implications and whether to use a Sec- prefix and such are probably the most pertinent. But I think in most cases you want Fetch community/editor review for any new web platform HTTP headers.

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

3 participants