Ionic PWA - service worker


Today I added few more features to my PWA and created a production build. But when I tried to test it on the production environment, my service worker file was not updated. Hence it refers my old versions of - index.html, main.js, main.css and polyfill.js files. It was weird completely

I am having a version number on my service worker file and I changed it before taking LIVE (run on number)… As per the standard if the sw detects a byte change from the installed version, then it will download and install the newer version which was not happening in my case…

Any suggestion… Thanks in advance!