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

Strips the hash from a URL in a couple of places #633

Merged
merged 3 commits into from
Jun 27, 2017
Merged

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @gauntface

The discussion in #488 talked about putting as much of the logic as possible inside reusable plugins; some of the logic that was changed in this PR is inside the CacheExpiration plugin.

However, there's no concept of plugins for routing (only for request handlers), and we needed to adjust the routing logic for precached URLs inside of workbox-sw. So that part is just done inline.

Fixes #488

@addyosmani addyosmani added the Chillin' Not being actively worked on, or deferred for a point in the future. label Jun 17, 2017
@canhphong
Copy link

@wibblymat hi hi

@@ -305,6 +305,9 @@ class WorkboxSW {

const route = new Route({
match: ({url}) => {
// See https://github.com/GoogleChrome/workbox/issues/488

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the actual problem description here?

@jeffposnick
Copy link
Contributor Author

PTAL.

@jeffposnick jeffposnick merged commit 02523f4 into master Jun 27, 2017
@jeffposnick jeffposnick deleted the hash-stripping branch June 27, 2017 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chillin' Not being actively worked on, or deferred for a point in the future.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants