Closed
Description
Lately I've found myself recommending to people that they use Cache-control: no-cache
or max-age: 0
on their service worker script resources. It seems best practice in order for service worker updates to be detected as devs expect.
Should Update algorithm just fetch the service worker script with Request.cache='no-cache'
by default? One could argue that an "update check" is semantically similar to pressing the refresh button.
Edit: Removed the erroneous statement about the firefox http cache.