您好,我们正在使用 Bunny CDN,在上次更新后(自有托管实例)看到了此错误:
service-worker.js:1 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://CDN/javascripts/workbox/workbox-sw.js' failed to load.
at https://NOTCDN/service-worker.js:1:14
(anonymous) @ service-worker.js:1
相关问题在此处:
Since the latest update we get the following JS errors re Service Worker in Chrome:
The script resource is behind a redirect, which is disallowed.
_application-786bec8dbeba5dccf3118668436791948e535eb587456944e94e0724bc417b14.js:76435
Failed to register Service Worker: SecurityError: Failed to register a ServiceWorker for scope ('https://www.xxxxx.com/') with script ('https://www.xxxxxx.com/service-worker.js'): The script resource is behind a redirect, which is disallowed.
[image]
We host …
但重建应用程序对我们不起作用
Falco
(Falco)
2022 年4 月 13 日 01:44
2
这通常意味着您的 CDN 配置不正确。您能分享您的实例 URL 吗?
1 个赞
Falco
(Falco)
2022 年4 月 13 日 01:59
4
您的 CDN 配置绝对错误。每个请求都会变成重定向。
示例:
curl -I https://cdn-discourse.btcarg.com.ar/brotli_asset/google-universal-analytics-v3-706f1d28f0a97f67a47515c96189277240ec4940d968955042066d7873fd1fe8.js
HTTP/2 301
date: Wed, 13 Apr 2022 01:58:24 GMT
content-type: text/html
content-length: 178
location: https://comunidad.btcarg.com.ar/brotli_asset/google-universal-analytics-v3-706f1d28f0a97f67a47515c96189277240ec4940d968955042066d7873fd1fe8.js
server: BunnyCDN-BR1-788
cdn-pullzone: 130852
cdn-uid: 248d702c-77f7-4a11-a1e4-6493202be675
cdn-requestcountrycode: BR
cdn-proxyver: 1.02
cdn-requestpullsuccess: True
cdn-requestpullcode: 301
cdn-cachedat: 04/13/2022 01:58:24
cdn-edgestorageid: 788
link: <https://foro.btcarg.com.ar/brotli_asset/google-universal-analytics-v3-706f1d28f0a97f67a47515c96189277240ec4940d968955042066d7873fd1fe8.js>; rel="canonical"
cdn-status: 301
cdn-requestid: 8dc502d3ed8aec72124ecd76a0f63602
cdn-cache: MISS
3 个赞
system
(system)
关闭
2022 年5 月 13 日 01:59
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.