Closed sjparkinson closed 6 years ago
I'm interested to know what 'as expected' means? What's the difference in behaviour between install and activated?
So #142 is released to QA and in giving it a spin I saw that it wasn't clearing up all caches.
I narrowed it down to the timing difference between these events.
First is installed
then is activated
, but before the latter and after the former the previous service worker is still running? and can open/create caches, install then won't happen again for a day.
I think eventually it would cleanup but it didn't feel correct / as I'd expect.
:+1::+1::+1:
v2 of #142
Moves cache clearing from
install
toactivate
so that it works as expected.