-
Notifications
You must be signed in to change notification settings - Fork 831
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
Adding the route logic #893
Conversation
* | ||
* @return {Array<string>} An array of URLs. | ||
*/ | ||
async getCachedUrls() { |
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.
I'm thinking that it would be safer to always go through the steps of creating a fresh array of URLs and not saving and reusing the previous this._parsedCacheUrls
value, since the underlying this._entriesToCacheMap
value might be changed at any time.
Alternatively, you could set this._parsedCacheUrls
to null
whenever this._entriesToCacheMap
is modified, but that's probably overkill.
(This might have been an issue with v2, too.)
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.
Just changed it to always return a fresh array.
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.
👍
PR-Bot Size PluginChanged File Sizes
New FilesNo new files have been added. All File SizesView Table
Workbox Aggregate Size Plugin |
LGTM2 |
R: @jeffposnick @addyosmani
This implements #886 minus tests. Wanted to get a gut check on the approach and will add tests in a follow up PR.