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

Update content-addressable-bundles.md #639

Closed
wants to merge 6 commits into from

Conversation

hayatoito
Copy link
Collaborator

@hayatoito hayatoito requested a review from irori March 17, 2021 10:05
@hayatoito
Copy link
Collaborator Author

I've added a link to issue #638 so that a reader can know the position of this proposal, and find easily where they can give feedback.

- Add a link to issue WICG#638
- Add "URL integrity" to Goal
- Add "Resource Batch Preloading" to references
@hayatoito hayatoito force-pushed the content-addressable-bundles branch from 05cbcba to d394f35 Compare March 17, 2021 10:09
- Update Goal section (Content-Addressability)
- Update Cache stragegy section, mentioning a browsers' HTTPCache per Origin.
- Add placeholders to Key scenario section as TODOs
@hayatoito
Copy link
Collaborator Author

There are several commits in this PR. I'll do "squash and merge" so that this can be one commit.

where the bodies of `bundle-C`, `bundle-D`, `bundle-E` are omitted to save the
cache disk space, the browser can start to fetch them again, possibly in
parallel. Note that a browser can start to fetch `bundle-D` and `bundle-E`
immediately without waiting fetching `bundle-C` (and scanning its index
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is:

  • Web developers should write multiple webbundle link elements in the HTML to fetch the webbundles in parallel if the loading performance is important.
  • This nested webbundle format should be used when lazy-loading is important, and the loading performance is not important.

Is my understanding correct?

If so, I don't understand the motivation of browser developers of introducing a new cache mechanism to keep the dependency information. Could you please explain this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good question!

It's fine for a browser to prefetch nested bundles even if a user doesn't request it explicitly.

  • If a user requests prefetch via <link> elements explicitly, browser should prefetch it.
  • If a user doesn't request it via <link> elements, a browser doesn't have to prefetch it, but may prefetch it, enabling the content to load instantly if and when the user requests it.

- Add FAQ: WebBundles for Ad Serving use cases
- Add FAQ: Subresource Integrity
- Add FAQ: More flexible way for mapping.
- Mention Merkle Integrity Content Encoding
- Some editorial fixes
@hayatoito
Copy link
Collaborator Author

Let me close this PR since I don't have a plan to work on this soon.

@hayatoito hayatoito closed this Jul 30, 2021
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 this pull request may close these issues.

3 participants