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

Resources shared across documents controlled by different service workers #244

Closed
annevk opened this issue Apr 22, 2014 · 7 comments
Closed

Comments

@annevk
Copy link
Member

annevk commented Apr 22, 2014

Currently Fetch (at least as defined in HTML) allows the user agent to share fetching of a resource across e.g. document or even origin boundaries. So if the user has http://example/mail/ and http://calendar/ open and they both fetch /test that can be shared.

I guess if both are controlled by a service worker this is impossible? Or if either?

@annevk
Copy link
Member Author

annevk commented Jun 16, 2014

Or the sharing can only be allowed on the networking layer?

@jungkees
Copy link
Collaborator

@annevk We started this discussion in the navigator.connect issue tracker: mkruisselbrink/navigator-connect#22. The basic idea there is to introduce a fall through request concept that eventually dipatches a fetch event to the cross origin service worker that opted to serve those events.

Let's discuss this topic there. Closing.

@annevk
Copy link
Member Author

annevk commented Mar 26, 2015

No that is something else. Imagine the user having https://example/ open twice. Both load /test. Does that cause one or two events?

@annevk annevk reopened this Mar 26, 2015
@jungkees
Copy link
Collaborator

Getting just a single event for multiple requests means there must be some additional logic to aggregate them in Fetch layer I guess. Sharing resources at some point (i.e., network layer cache or SW cache for authors) is a must for sure, but I'm not sure how much benefit we can get from aggregating requests.

@annevk
Copy link
Member Author

annevk commented Mar 26, 2015

I'm leaning towards only at the network level and even that I'm not putting in the specification. But I'm somewhat curious if implementers I have not talked to explicitly have different ideas.

@wanderview
Copy link
Member

No that is something else. Imagine the user having https://example/ open twice. Both load /test. Does that cause one or two events?

I would expect that to cause two events.

@annevk
Copy link
Member Author

annevk commented Apr 5, 2015

Closing this for now. It seems everyone agrees that sharing is unlikely to happen and if it does it should not be observable (easily).

@annevk annevk closed this as completed Apr 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants