I have added service worker to my angularjs app. I have registered sw.js in way shown here. It works I can see it is activated and running.
Right now I want to cache a version number, which is located in file saved in application root directory and listen if it is updated.
As long as file stays same as cached, service worker should do nothing but when change is detected should refresh page.
Anybody tried it in your own projects? I have visited a lot websites like this but there is not much information for angularjs.
I have visited questions related to the topic here but it didn't help much.