title: 404 error when trying to register serviceWorker
body: <p>I get this error when trying to register the service worker:</p>
  
  <blockquote>
    <p>Failed to register a ServiceWorker: A bad HTTP response code (404) was gwreceived when fetching the script.</p>
  </blockquote>
  
  <p>I'm working with ionic and this is what I have in the app.js:</p>
  
  <pre><code>   if ('serviceWorker' in navigator) {
        navigator.serviceWorker.register('service-worker.js').then(function(registration) {
        console.log('ServiceWorker registration successful with scope: ', registration.scope);
      }).catch(function(err) {
        //registration failed :(
        console.log('ServiceWorker registration failed: ', err);
      });
    }else {
      console.log('No service-worker on this browser');
    }
  </code></pre>
  
  <p>On the directory I have the service-worker.js file right next to the app.js on the same folder. </p>
  
  <p>Using latest chrome version on ubuntu desktop.</p>