title: Reactjs service worker in a Web Application
body: <p>I am new to web app development so pardon my questions. </p>
  
  <p>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.</p>
  
  <p>I removed the service worker from my app and now Chrome always get the new app.</p>
  
  <p>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?</p>
  
  <p>If I have to add this <code>Cache-Control: no-cache</code> or other cache mechanism <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control</a> what's the use of service worker then?</p>