A tool to Monitor Page Crashes.
崩溃复现: chrome://crash
方案设计: WebWorker -> ServiceWorker
前置要求:https -> http
前端服务: vite
模拟后端服务: koa
心跳数据:
{
type: 'hearbeat',
id: uuid,
data: {
url: 'xxx',
openDate: '',
},
}
sw pages:
{
id: {
lastReportDate: '',
data: {
url: 'http://localhost:5173/',
openDate: '',
},
},
}
-
强制刷新丢失 controller 问题
-
更新 Service Worker
Can you use a service worker with a self-signed certificate?
Options for testing service workers via HTTP
navigator.serviceWorker.controller is null until page refresh