Javascript 服务人员错误“;未兑现的(承诺中的)DOME例外:超出配额;
我正在尝试建立一个PWA应用程序。该应用程序在其他设备和机器浏览器上运行,但在我的Chrome浏览器中,我的浏览器出现以下错误Javascript 服务人员错误“;未兑现的(承诺中的)DOME例外:超出配额;,javascript,google-chrome,service-worker,Javascript,Google Chrome,Service Worker,我正在尝试建立一个PWA应用程序。该应用程序在其他设备和机器浏览器上运行,但在我的Chrome浏览器中,我的浏览器出现以下错误 Uncaught (in promise) DOMException: Quota exceeded. service-worker.js:1 服务人员文件: /** * Welcome to your Workbox-powered service worker! * * You'll need to register this file
Uncaught (in promise) DOMException: Quota exceeded. service-worker.js:1
服务人员文件:
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo(dot)gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo(dot)gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/mywebpage/precache-manifest.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo(dot)gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/mywebpage/index.html"), {
blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
那么服务人员中有什么?编辑您的问题,让我们查看您的服务人员文件。您的目标是什么?更新了问题并添加了整个service-worker.js文件代码