Hi all,
I’m getting the following error in devtools for some reason:
Uncaught (in promise) DOMException
It leads me to this script:
'use strict';
importScripts("<%= "#{Discourse.asset_host}#{Discourse.base_path}/javascripts/workbox/workbox-sw.js" %>");
workbox.setConfig({
modulePathPrefix: "<%= "#{Discourse.asset_host}#{Discourse.base_path}/javascripts/workbox" %>",
debug: false
});
const cacheVersion = "1";
// Cache all GET requests, so Discourse can be used while offline
workbox.routing.registerRoute(
new RegExp('.*?'), // Matches all, GET is implicit
new workbox.strategies.NetworkFirst({ // This will only use the cache when a network request fails
cacheName: "discourse-" + cacheVersion,
plugins: [
new workbox.expiration.Plugin({
maxAgeSeconds: 7* 24 * 60 * 60, // 7 days
maxEntries: 500,
This file has been truncated. show original
Discourse version: 2.4.0.beta4
What could be the problem?
Falco
(Falco)
2019 年 9 月 30 日午前 1:55
2
That means an asset failed to cache for offline usage, and most of times is just ad blocking leading to failure of the google analytics script. Can also be caused by a cache full, but in either case it doesn’t affect Discourse usage or any of it’s features.