Service worker Failed to load resource: net::ERR_UNSAFE_REDIRECT
<p>would you please tell me what i did wrong with my service worker installation, i have those errors appear in chrome console (see the image-1).</p>

<pre><code>The script resource is behind a redirect, which is disallowed.                          service-worker.js:1

Failed to load resource: net::ERR_UNSAFE_REDIRECT          https://harampress.com/post/45/service-worker.js
</code></pre>

<p>i use Laravel framework in backend if that could help</p>

<p>just to know that my service-worker.js is in the root of the website, works fine on home page no errors on chrome console, but the moment i try to navigate to a post for example, those two errors appears (see image-2).</p>

<p>knowing that i use sw-precache and sw-toolbox, i generate the service worker useing sw-precache with gulp.</p>

<p><a href="https://harampress.com/uploads/files/shares/service%20worker.png" rel="nofollow noreferrer">image-1</a></p>

<p><a href="https://harampress.com/uploads/files/shares/serivce-worker-errors.png" rel="nofollow noreferrer">image-2</a></p>