-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Request scheme 'chrome-extension' is unsupported #66
Comments
The docs say that the Web cache API can only put http/https requests (https://developer.mozilla.org/en-US/docs/Web/API/Cache/put#Return_value). So this can be solved by adding a check in code like:
used in CacheFingerprinted.js and CacheFirstSafe.js |
How do we add this to our code? |
I think I found a fix to it |
yes, it's works. Thanks |
How did you apply this fix? Is this something that can be merged into the nuget package so we can all benefit from the fix? |
I added that in my service worker.js file I don't know if it could be added to the nugget package I can try to figure out a way to make a pull request to the repo to fix this |
I went ahead and pulled down the source and just fixed it in the CacheFirstSafe.js, CacheFirst.js, and NetworkFirst.js. It seems to work well. Thank you! |
Check out this pull request if it would help |
I got the same error, is this going to be merged in the next release? |
I think @madskristensen is working on the next release |
Also I think you can just update your service worker directly before the release |
How do I update the service worker?? |
you can create the service worker file but I think it is auto-created when you install the package |
I get this error in the console from cache.put(request, copy). I don't see any way to fix it without downloading the source code and changing it.
The text was updated successfully, but these errors were encountered: