Re: [w3c/ServiceWorker] Allow caches to opt-in to granular cleanup (#863)

> Right, my specific concern was: given that some browsers apparently reserve the right to clear entries from the cache at their discretion.

Also, I believe there are different "Clear browsing data" options available to the user which allows a user to clear Cache but not IDB.

When does Workbox check expiration dates? Our experience has been that IDB latency is not reliably low enough to block time-sensitive operations, like serving requests. We put our expiration dates as a header in the cached response, and check the header when serving, to make sure the asset isn't expired. The IDB latency issue is discussed more in https://github.com/w3c/ServiceWorker/issues/1331.

Are there any other known use cases for `Cache` metadata besides the following?
- Informing cache cleanup
- Implementing cache entry expiration dates

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/863#issuecomment-434404417

Received on Tuesday, 30 October 2018 18:01:08 UTC