Re: [ServiceWorker] Hints in beforeevicted to let the SW of a web app pick among several house cleaning options? (#611)

How to distribute space request over origins is not a simple question, but I want to pursue this idea a bit more.  If we just let apps to guess and decide how much data to delete it may end up with some gaming, e.g. conservative apps may delete as much data as possible to make their survival rate higher while greedy apps may just get more space.  I think UA could probably do a modest (if not better) job to distribute available space over apps using their past usage data.

Also if we consider `spaceRequested` a contract there could be a huge difference between "if you delete X amount of data we can keep your remaining data" and "we're on resource shortage, please delete some, though we may still delete your entire data".  And I think that's what developers really want, where they can flexibly decide how persistent each of their data item should be depending on the space need.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/611#issuecomment-72193155

Received on Friday, 30 January 2015 12:21:19 UTC