I've red in many articles that service worker automatically detects if there's a change in its js (mine is 'service-worker.js') http://www.html5rocks.com/en/tutorials/service-worker/introduction/
I already registered and see the status in chrome://serviceworker-internals/. The problem is whenever i change the service-worker.js, it doesn't detect the change when I go to the scope url (mine is 'localhost/dashboard'). The weird thing is when I visit the service-worker.js (localhost/service-worker.js) , then visit the scope url, it now detects the change and I see 2 service workers in chrome://serviceworker-internals/. One has running status and the other one has 'installed' status. I presume that this is correct but why do i still need to go to the js file?
Is this a server side problem or cache problem? I tried clearing the cache but the problem keeps getting back.