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

Adds the NavigationRoute class #234

Merged
merged 4 commits into from
Feb 23, 2017
Merged

Adds the NavigationRoute class #234

merged 4 commits into from
Feb 23, 2017

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @gauntface

This adds a new NavigationRoute class, fairly close to what's described in #169, which matches when event.request.mode === 'navigate' and the URL's pathname is in a whitelist (and not in a blacklist).

This lays the groundwork for App Shell routing. I think the next step would be to take this and add in some logic in sw-lib that made use of NavigationRoute coming after the route that matches precached assets, and allowed the developer to cleanly specify the URL that corresponds to their App Shell HTML.

@jeffposnick jeffposnick merged commit e1b93a0 into master Feb 23, 2017
@jeffposnick jeffposnick deleted the navigation-route branch February 23, 2017 19:23
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.

2 participants