Skip to content
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

consider a method to force immediate disk deletion even if there are live Cache/Response js objects #1287

Open
wanderview opened this issue Mar 16, 2018 · 3 comments

Comments

@wanderview
Copy link
Member

See:

https://bugs.chromium.org/p/chromium/issues/detail?id=782869#c5

If a site wants to delete a large Cache immediately, they may not want to wait for a GC a run. We should consider allowing them to disconnect their js wrappers or perhaps add a "force" option to the delete() method.

@inexorabletash
Copy link
Member

inexorabletash commented Mar 16, 2018

FWIW, on the Chrome side we've been talking about an internal clear operation that would atomically delete all entries in a cache, and using this in conjunction with delete when the user clears browsing data so that the space is reclaimed without waiting for SW reload/GC, and without introducing a new state.

cc: @bsittler

@wanderview
Copy link
Member Author

For the quota eviction or user deletion cases I believe we currently immediately delete and make any use of the Cache object reject with InvalidStateError. Might need to verify that, though.

@wanderview
Copy link
Member Author

FWIW, I do think we should spec the behavior for "cleared by browser" when there are live objects being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants