-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
Same-origin policy implications and whether to use a |
We're mostly delegating HTTP advice to the IETF, currently in https://w3ctag.github.io/design-principles/#using-http, but #546 proposes to shorten that into https://w3ctag.github.io/design-principles/#specs-include-guidance. The cited RFC9205 delegates to RFC9110 on naming, which mentions the impact of names on request size. Those RFCs don't address omitting request headers, but an IETF document seems like the right place to discuss that. A web document should discuss the tradeoff between headers and JS: Something like "Client-side APIs (whether in HTML, CSS, or Javascript) are more flexible and usually cheaper than HTTP headers, especially headers that would need to be sent on every request. However, sometimes new HTTP headers are needed for cases where servers need to react to a condition before their response has started executing on the client." If the Fetch editor (that is, Anne) is willing to review new web platform HTTP headers, it'd be good to add a section on his general advice and how to ask for review at, perhaps, https://fetch.spec.whatwg.org/#background-reading, and then https://w3ctag.github.io/design-principles/#specs-include-guidance can link to it. @annevk does that make sense to you? I'm inclined to put the header-vs-JS paragraph in that section so people have fewer places to look. |
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:
...and probably other things I'm not thinking of right now.
So, more headers guidance please :)
The text was updated successfully, but these errors were encountered: