title: React.js - Static files are cached and loading from service worker
body: <p>When I do any changes in my CSS file and do a build, a new CSS bundle file is created.</p>
  
  <p>Build One</p>
  
  <p><a href="https://i.stack.imgur.com/Nh3ms.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nh3ms.png" alt="Build One"></a></p>
  
  <p>Console.log of Build One</p>
  
  <p><a href="https://i.stack.imgur.com/2dpJ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2dpJ2.png" alt="Console log 1"></a></p>
  
  <p>Build Two</p>
  
  <p><a href="https://i.stack.imgur.com/IDoxN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IDoxN.png" alt="Build 2"></a></p>
  
  <p>Console.log of Build Two</p>
  
  <p><a href="https://i.stack.imgur.com/oku76.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oku76.png" alt="enter image description here"></a></p>
  
  <p>If you see in the second build the CSS file name is changed from <strong>main.1012bf29.chunk.css</strong> to <strong>main.2ff4e3dd.chunk.css</strong></p>
  
  <p>But if you see the console log for both the build is same, the CSS file of the first build is cached.</p>
  
  <p>Expected output: On every build, the cache needs to be cleared.</p>
  
  <p>Note: I have enabled PWA in my react app. React version is 16.7.0, I have created my project using the create-react-app command</p>