I am new to web app development so pardon my questions.
I just noticed that a web app I created using create-react-app that has service worker installed, upload it to my server, won't reload the new app after being built when I open it from my local Chrome browser, even though I reload node on my server many times, and hard reload Chrome browser.
I removed the service worker from my app and now Chrome always get the new app.
How do I 'force' service worker to update itself in my app so I always get the new build app every time I push it to my server?
If I have to add this Cache-Control: no-cache
or other cache mechanism https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control what's the use of service worker then?