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

[Index | Example] Add Service Worker object #558

Merged
merged 2 commits into from Mar 19, 2017

Conversation

RobDolinMS
Copy link
Contributor

Adds the service worker object to the complex example

@kenchris (or others) - would you please comment if you think scope should be:
a) "/racer" - matching example in serviceworker section
b) "/racer/" - matching the scope object earlier in the example

Signed-off-by: Rob Dolin robdolin@microsoft.com

Adds the service worker object to the complex example

@kenchris (or others) - would you please comment if you think scope should be:
 a) "/racer" - matching example in serviceworker section
 b) "/racer/" - matching the `scope` object earlier in the example

Signed-off-by: Rob Dolin <robdolin@microsoft.com>
@kenchris
Copy link
Collaborator

I would assume that they mean the same, assuming /races is a dictionary. If it is not, it won't work in any of the cases.

https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html

Does the SW spec say anything about this?

@kenchris
Copy link
Collaborator

For the example, I think it makes more sense to use /races/ because that makes it clear it is a dictionary

"serviceworker" | `"scope": "/racer"` --> "serviceworker" | `"scope": "/racer/"`

Matches `"scope": "/racer/"`

Signed-off-by: Rob Dolin <robdolin@microsoft.com
@RobDolinMS
Copy link
Contributor Author

Thanks @kenchris. I've updated the example your suggestion.
If there is no additional feedback, please review and merge. Thanks.

@marcoscaceres marcoscaceres self-requested a review March 17, 2017 01:06
@kenchris kenchris merged commit cce83f2 into gh-pages Mar 19, 2017
@RobDolinMS RobDolinMS deleted the RobDolinMS-add-serviceworker-to-complex-example branch April 26, 2017 19:19
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.

None yet

3 participants