-
Notifications
You must be signed in to change notification settings - Fork 823
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
Precaching idb fix #1139
Precaching idb fix #1139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, if/when we have multiple version upgrade paths in the future, I like the technique Jake suggests in the upgrading section his idb readme using switch
statements with fall-through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally seems fine (and I trust Phil's LGTM more than mine), but there is a Travis failure in the [workbox-precaching] Precache and Update
end to end test.
Since you are changing the precaching code, can you confirm whether that's a false positive or a real issue?
So I fixed the integration tests, but the underlyinig indexedDB mock isn't correct, so I've raised a PR against phil's version of the repo here: philipwalton/shelving-mock-indexeddb#1 |
PR-Bot Size PluginChanged File Sizes
New FilesNo new files have been added. All File SizesView Table
Workbox Aggregate Size Plugin☠️ WARNING ☠️We are using 151% of our max size budget. Total Size: 22.07KB Gzipped: 8.81KB |
R: @jeffposnick @philipwalton
More changes to ensure idb works.
In IndexedDB version 1, we used two object stores 'workbox-precaching' and 'precaching-details-models'. In IndexedDB version 2 we only use 'precaching-details-models'. To ensure we are upgrading to a clean working state, this PR removes any old object stores and creates a new one.