-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support HTTP header Link #657
Comments
I am not an expert but I note that this example also has a resources section:
I have not seen the scope= in a webbundle link before. I must have missed that. Where did you find it? |
|
[Issue Triage] |
I conducted an experiment, I add a resource with I think that it is useful to interpret these headers at the stage of generating a bundle file, for efficient sorting of the contents of the bundle, files that have the most links from other files, should be located at the beginning of the bundle body, what do you think? |
In a packaging time, I guess they can probably know the dependency graph of resources without much difficulty with static analysis. So they can package resources in topological orders or any other order they want, instead of letting bundle tools decide the order with such a heuristic. |
I agree with you. |
BTW, I wrote a small draft proposal last year: This proposal and this issue are not directly related, however, probably share the same goal; giving a browser declarative hints so that a browser download all dependencies as early as possible. |
Yes, I read, you understand the problem correctly, but I don’t see the point in additional dependency semantics, there are already semantics at the Link header level, it can be used to solve these problems. Link headers can also be used for clients which don't support webpackage, they will make separate requests for each file and get Link headers they understand |
Hello.
I could not find a way to specify a list of resources or scope in the HTTP header:
Link: <https://example.com/dir/subresources.wbn>; rel="webbundle"; scope="https://example.com/dir/";
Will this work?
Thanks.
The text was updated successfully, but these errors were encountered: