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

Add example for Service-Worker-Allowed #775

Closed
marcoscaceres opened this issue Nov 2, 2015 · 2 comments
Closed

Add example for Service-Worker-Allowed #775

marcoscaceres opened this issue Nov 2, 2015 · 2 comments
Milestone

Comments

@marcoscaceres
Copy link
Member

I imagine a lot of people will want to do this:

navigator.serviceWorker.register("/js/sw.js", {scope: "./"});

Because having a sw.js sitting in the root is just ugly.

However, the Service-Worker-Allowed header is mega confusing to use, and the corresponding spec text is (for me?) very hard to understand.

Can we please add an example for how to use this in the common case above... also, can we please add some examples for how the {scope: "whatever"} and the Service-Worker-Allowed header value are combined to come up with maxScope, etc.?

Thanks! ❤️

@marcoscaceres
Copy link
Member Author

(FWIW, Chrome's error messages when using Service-Worker-Allowed are super helpful... I was trying to do this in Firefox and it currently provides little help apart from the security error 😿).

@jungkees jungkees added this to the Version 1 milestone Nov 2, 2015
@wanderview
Copy link
Member

gecko console reporting bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1220757

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

No branches or pull requests

3 participants