瀏覽器抱怨該文件是一個重定向背後: DOMException: Failed to register a ServiceWorker:
The script resource is behind a redirect, which is disallowed.
我試過至今: Service worker on `static/service-worker.js`
Service worke
當我在Chrome中刷新(或脫機)時,我得到「This site can'無法達到「並將以下內容記錄到控制檯:The FetchEvent for "http://localhost:8111/survey/174/deployment/193/answer/offline/attendee/240/" resulted in a network error response: a redirec
create-react-app(yarn run build)的構建過程在重新構建之前刪除舊的靜態JS文件。部署到Firebase託管時,舊JS文件不包含在內,不再提供服務。 但是在訪問舊版本之後,Service Worker(由sw-precache和sw-precache-webpack-plugin構建,默認包含在CRA中)緩存了舊的HTML,其中包含舊的JS文件更長的服務時間,所以我得到