Skip to content

Define behavior of link headers #7616

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

Closed
noamr opened this issue Feb 13, 2022 · 3 comments
Closed

Define behavior of link headers #7616

noamr opened this issue Feb 13, 2022 · 3 comments

Comments

@noamr
Copy link
Collaborator

noamr commented Feb 13, 2022

MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link
Header spec: RFC 8288

Currently some browsers support the Link header, but that behavior is not specified in the HTML spec.
A link header can be preload or prefetch. prefetch is not yet spec'ed.
specifying early hints depends on this.

@domenic
Copy link
Member

domenic commented Feb 14, 2022

We have https://html.spec.whatwg.org/#processing-link-headers which is not much, but tries to handwave some stuff (like, it implies that stylesheet from Link headers come before stylesheets from <link> elements, in terms of cascade order and document.styleSheets.

https://html.spec.whatwg.org/#interactions-of-styling-and-scripting also has a note.

At a basic level, I wonder how many of the link types that are external resource links are also supported in header form.

@noamr
Copy link
Collaborator Author

noamr commented Feb 14, 2022

Ah the spec a

We have https://html.spec.whatwg.org/#processing-link-headers which is not much, but tries to handwave some stuff (like, it implies that stylesheet from Link headers come before stylesheets from <link> elements, in terms of cascade order and document.styleSheets.

https://html.spec.whatwg.org/#interactions-of-styling-and-scripting also has a note.

At a basic level, I wonder how many of the link types that are external resource links are also supported in header form.

The spec actually points to a different issue, I guess this one should fold into that one.

@noamr noamr closed this as completed Feb 14, 2022
@noamr
Copy link
Collaborator Author

noamr commented Feb 14, 2022

(Closed as duplicate of #4224)

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

No branches or pull requests

2 participants