mozilla / remote-newtab

Remotely-hosted New Tab Page
https://mozilla.github.io/remote-newtab/src/
Mozilla Public License 2.0
15 stars 7 forks source link

Figure out how service worker updates actually work #134

Open marcoscaceres opened 9 years ago

marcoscaceres commented 9 years ago

@oyiptong pointed out that if updating the SW fires an "install" event, then all our thumbs will get trashed (I have no idea what happens ATM, need to do more reading about how it works).

From a quick scan, it appears that that is the case. If so, we need to change the logic so that we do a soft update of things in the appropriate cache as needed (e.g., try to re-request files that might have expired if we are online, don't trash the "pagethumbs_cache", etc.).