title: Can't clear Gatsby static site cache
body: <p>I have a website which was using gatsbyJS (React framework for static sites)</p>
  
  <p>Now I have moved the site to a CMS (WordPress) but because we have used gatsbyJS initially on the same domain, it's showing old cached files that gatsby has built.</p>
  
  <p>we are not able to access the new website on browsers where someone has initially opened the gatsby site, as its just showing the cached files.</p>
  
  <p>From my initial search I came to know following things:</p>
  
  <ol>
  <li>GatsbyJS is optimized for <a href="https://github.com/gatsbyjs/gatsby/issues/2880" rel="noreferrer">offline access</a> using <code>service workers</code>.</li>
  <li>To invalidate the service workers, I need to again server the GatsbyJS static site after adding some script so that when someone visits the site, service workers gets invalidated.</li>
  <li>I can't control service workers otherwise.</li>
  </ol>
  
  <p>I can't go back to initial site as that's already been published and people are looking at it but there are many other people who are still seeing the broken gatsby site.</p>
  
  <p>any solution for the above issue?</p>