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

Define procedure to convert options object of sw.register() to Link header #979

Open
surma opened this issue Sep 20, 2016 · 4 comments
Open

Comments

@surma
Copy link
Member

surma commented Sep 20, 2016

With the recent comment in #893, we have to keep in mind that all the options that navigator.serviceWorker.register accepts need to be available to the Link header (and the <link rel="serviceworker">) as well. With foreign fetch, this becomes especially important.

It would probably be good to define a procedure to convert the options object to a string-based representation. Additionally, we should limit the types of options that can be added in the future.

@marcoscaceres
Copy link
Member

It be great for web manifest integration if it's either a string sequence ("options": "...") or something that is JSON friendly {"options": {...}}.

@marcoscaceres
Copy link
Member

(of course, web manifest can just use the object form... just haven't spec'ed it, so waiting to see if something nice comes out of this)

@jakearchibald
Copy link
Contributor

Is this still useful now we've removed foreign fetch? What would you use this API for?

@mkruisselbrink
Copy link
Collaborator

We haven't removed link headers yet, but if we remove that we probably won't need this, yes.

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

4 participants