I have a Polymer app with service workers hosted with Firebase. The app works fine on every browser except Firefox. When you try to refresh the browser in Firefox after initial load (which works), it throws the following error:
A ServiceWorker passed a redirected Response to FetchEvent.respondWith() while RedirectMode is not ‘follow’
The service-worker.js
is auto-generated by the polymer-cli
(v0.16.0).
To address this known issue, set the
redirect
option tofollow
in your service worker'sfetch()
requests: