Service Worker w offline.html Backup Page
问题 I can't get the offline.html page to display. I keep getting the The FetchEvent for "https://my-domain.com" resulted in a network error response: a redirected response was used for a request whose redirect mode is not "follow" . Here's the snippet of my service-worker.js which should return the offline.html when the network is unavailable. self.addEventListener('fetch', function(event) { if (event.request.mode === 'navigate' || (event.request.method === 'GET' && event.request.headers.get(