-
Notifications
You must be signed in to change notification settings - Fork 821
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
Support matching URI-encoded requests against the precache manifest #2856
Comments
Hmm, I'm not really sure that encoding the What you could do is use the Using this does require that you switch to the
If that doesn't work for you, let us know and we can revisit. |
I fixed it with npm-patch. So strictly speaking, this is not blocking me. I think your concern about backward compatibility makes sense. However, given |
Thinking more about it, it's probably "safe" (from a semver perspective) if we added something like that custom
So maybe we can just do that (assuming the logic shared above works; we'd add in a test case to confirm) and we wouldn't need to warn folks to begin with—it would just start working as expected. |
I think you are right. Upon further investigation. I think this might be an issue with html-webpack-plugin rather than with workbox. |
Hi there, Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:
Thanks, and we hope for your understanding! |
Library Affected:
workbox-webpack-plugin
Browser & Platform:
all browsers
Issue or Feature Request Description:
the generated service worker doesn't not encode file names of the cached files.
For instance, the plugin will generate the following code.
However, when webpack-html-plugin will generate the following html.
Note that the
@
is encoded to%40
.As a result, the file is not cached by the service worker and the page has to hit the web server to retrieve that file. This can be problematic when a new version is released and the original file no longer exist on the server. The old HTML file may still be served by the service worker, and the page may run into 404 when trying to get the dependencies.
I believe encoding the URL is the correct implementation. So we should fix it on the workbox side.
The text was updated successfully, but these errors were encountered: