Discourse ベースの Web サイトで Firefox がネットワークプロトコル違反を経験

Screenshot of console when after req fails - breakpoint set before content error screen loads:

err msg:

Failed to load ‘https://clojureverse.org/t/java-10-announcement-implications-for-clojure/1583’. A ServiceWorker passed a promise to FetchEvent.respondWith() that rejected with ‘Error: TypeError: NetworkError when attempting to fetch resource.’.

i would step further in to this but debugging in FF is useless compared to Chrome(my normal dev browser)
clicking through that service-worker in err msg link just brings me to a v. basic ‘view source’ screen[0]:

looking at that line number in something better and at column 1396

which is the ‘new’ in if (navigator.onLine) throw new Error(e); from:

 self.addEventListener("fetch", function(e) {
    /\?.*token/i.test(e.request.url) || ("navigate" === e.request.mode || "GET" === e.request.method && e.request.headers.get("accept").includes("text/html")) && e.respondWith(fetch(e.request).catch(function(e) {
        if (navigator.onLine) throw new Error(e);
        return caches.match(OFFLINE_URL)
    }))

[0]

 "use strict";function createCacheBustedRequest(e){var t=new Headers({"Discourse-Track-View":"0"}),n=new Request(e,{cache:"reload",headers:t});if("cache"in n)return n;var i=new URL(e,self.location.href);return i.search+=(i.search?"&":"")+"cachebust="+Date.now(),new Request(i,{headers:t})}function isIdle(){return lastAction+idleThresholdTime<Date.now()}function showNotification(e,t,n,i,a,s,o){var c={body:t,icon:n,badge:i,data:{url:o,baseUrl:s},tag:a};return self.registration.showNotification(e,c)}const CACHE_VERSION=1,CURRENT_CACHES={offline:"offline-v1"},OFFLINE_URL="offline.html";self.addEventListener("install",function(e){e.waitUntil(fetch(createCacheBustedRequest(OFFLINE_URL)).then(function(e){return caches.open(CURRENT_CACHES.offline).then(function(t){return t.put(OFFLINE_URL,e)})}).then(function(e){self.skipWaiting()}))}),self.addEventListener("activate",function(e){var t=Object.keys(CURRENT_CACHES).map(function(e){return CURRENT_CACHES[e]});e.waitUntil(caches.keys().then(function(e){return Promise.all(e.map(function(e){if(-1===t.indexOf(e))return caches.delete(e)}))}).then(function(){self.clients.claim()}))}),self.addEventListener("fetch",function(e){/\?.*token/i.test(e.request.url)||("navigate"===e.request.mode||"GET"===e.request.method&&e.request.headers.get("accept").includes("text/html"))&&e.respondWith(fetch(e.request).catch(function(e){if(navigator.onLine)throw new Error(e);return caches.match(OFFLINE_URL)}))});const idleThresholdTime=1e4;var lastAction=-1;self.addEventListener("push",function(e){var t=e.data.json();if(!isIdle()&&t.hide_when_active)return!1;e.waitUntil(self.registration.getNotifications({tag:t.tag}).then(function(e){return e&&e.length>0&&e.forEach(function(e){e.close()}),showNotification(t.title,t.body,t.icon,t.badge,t.tag,t.base_url,t.url)}))}),self.addEventListener("notificationclick",function(e){e.notification.close();var t=e.notification.data.url,n=e.notification.data.baseUrl;e.waitUntil(clients.matchAll({type:"window"}).then(function(e){if(!e.some(function(e){return e.url===n+t&&"focus"in e?(e.focus(),!0):"postMessage"in e&&"focus"in e&&(e.focus(),e.postMessage({url:t}),!0)})&&clients.openWindow)return clients.openWindow(n+t)}))}),self.addEventListener("message",function(e){"lastAction"in e.data&&(lastAction=e.data.lastAction)}); //# sourceMappingURL=/assets/service-worker-b3132ce44c958878a3dc19776072ad3861a661ca983e3c8f0269c27a439d47d2.js.map