title: Service Worker Causing a Blank Page After Refresh in React Application
body: <p>I have a Node application deployed to Azure, with a test branch leading to a staging instance, and a master branch pointed at the prod deployment. My application works fine on all instances of the application locally, but production and staging are having an issue in which they will not load if they are already cached, and will appear blank after a refresh, and lastly will work properly with a cache reset. </p>
  
  <p>Whenever I refresh the page in production, it is just blank. The service worker is running (I can see it in the chrome serviceworkers-internal tool), but the page just never loads. The file references generated are correct. You can see an example of what is happening here: <a href="https://codecollaborator.azurewebsites.net" rel="noreferrer">Live Site</a> and then you can also see the testing site which is also failing with the exact same code deployed: <a href="https://codecollaborator-staging.azurewebsites.net" rel="noreferrer">Test Site</a>.</p>
  
  <p>The entirety of the ServiceWorker implementation is out of the box from <code>create-react-app</code>. I've spent several hours trying to track this bug down across a variety of GitHub issues under the react-boilerplate and create-react-app repos and none of them really get anywhere beyond restricting page caching, which I tried to do with no avail with:</p>
  
  <h2>Index.html</h2>
  
  <pre><code>&lt;meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/&gt;
  &lt;meta http-equiv="Pragma" content="no-cache"/&gt;
  &lt;meta http-equiv="Expires" content="0"/&gt;
  </code></pre>
  
  <p>You can find any of the code you have questions about any code at <a href="https://github.com/RobertMcCoy/CodeCollaborator" rel="noreferrer">the repo that hosts all of this code.</a></p>
  
  <p>I'm just kind of getting my feet wet with React/Node, so I'm at a wall and don't really see how to get around this without completely ripping out the ServiceWorker registration.</p>
  
  <p>EDIT: I completely removed the ServiceWorker code from the <code>index.js</code> file and the sight reloads without any issues now. Is there a step I need to complete to get the ServiceWorker to properly reload the page from cache or something?</p>