-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cleanup stale snapshots #45
Comments
In the service worker, after update() is called the old snapshots should be removed. This can be accomplished by retrieving the list of snapshots, getAllSnapshots(), and then calling remove() on those snapshots excluding the most recent snapshot. |
For it to be handled in update() the interface has to change first which seems out of scope for this issue |
I'm not sure I see why the interface would have to change? The update function gets the latest snapshot, so it could just delete all the other ones after it finishes storing the new snapshot. |
The existing interface doesn't make sense when there can only be one snapshot. |
Snapshots should automatically be cleanup when they are stale or the cleanup functionality should be exposed in the api.
The text was updated successfully, but these errors were encountered: