title: Service worker offline - administration not working
body: <p>I install service worker to my website. I have Front and Admin module. On the Front a add service worker like this</p>
  
  <pre><code> if ('serviceWorker' in navigator) {
          navigator.serviceWorker.register('serviceworker.js', {
              scope: './'
          });
      }
  </code></pre>
  
  <p>And service worker like this</p>
  
  <pre><code> 'use strict';
  
   var cacheVersion = 1;
   var currentCache = {
     offline: 'offline-cache' + cacheVersion
   };
   const offlineUrl = '/offline';
  
   this.addEventListener('install', event =&gt; {
     event.waitUntil(
       caches.open(currentCache.offline).then(function(cache) {
         return cache.addAll([
           '/assets/base/images/404-parallax.png',
           offlineUrl
         ]);
       })
     );
   });
  
   this.addEventListener('fetch', event =&gt; {
     // request.mode = navigate isn't supported in all browsers
     // so include a check for Accept: text/html header.
     if (event.request.mode === 'navigate' || (event.request.method === 'GET' &amp;&amp; event.request.headers.get('accept').includes('text/html'))) {
       event.respondWith(
         fetch(event.request.url).catch(error =&gt; {
           // Return the offline page
           return caches.match(offlineUrl);
         })
       );
     } else {
       // Respond with everything else if we can
       event.respondWith(caches.match(event.request)
         .then(function(response) {
           return response || fetch(event.request);
         })
       );
     }
   });
  </code></pre>
  
  <p>offline page is example.com/offline</p>
  
  <p>frontend looks OK, but if I want go to administration example.com/administration I've got ERR_FAILED and in console is <code>"https://www.example.com/administration/" resulted in a network error response: a redirected response was used for a request whose redirect mode is not "follow".</code></p>
  
  <p>But if I open DevTools and press ctrl+shift+R then the page works. But if I haven't open DevTools its not working. </p>
  
  <p>I'am realy confused. Maybe is some problem with scope of serviceworker, but I try many optins and still not workin.</p>