vue项目使用manifest缓存vueCommon.js之后也没没法正常加载执行了?

发布于 2022-09-04 14:43:02 字数 3850 浏览 30 评论 0

采用vuevue-routervuex等vue全家桶把页面构建部署了。想继续用manifest优化一下vueCommon.js的加载问题(主要是首页加载确实有点慢)。

但是配置之后。就无法正常执行了。求解?

备注: 去掉page.html 中manifest文件的引用重新刷新就又可以正常了。

manifest文件

CACHE MANIFEST
# 2017-03-07 v-1

CACHE:
../vue-dev/vueCommon.js
../vue-dev/cup.js
../vue-dev/page.js


NETWORK:




FALLBACK:

报错信息:

Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
vue.common.js?f9a0:6183 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
page.html#/:1 Creating Application Cache with manifest http://120.132.3.52:8088/uci-pre/build/common/vue.appcache
page.html#/:1 Application Cache Checking event
page.html#/:1 Application Cache Downloading event
page.html#/:1 Application Cache Progress event (0 of 3) http://120.132.3.52:8088/uci-pre/build/vue-dev/cup.js
page.html#/:1 Application Cache Progress event (1 of 3) http://120.132.3.52:8088/uci-pre/build/vue-dev/page.js
page.html#/:1 Application Cache Progress event (2 of 3) http://120.132.3.52:8088/uci-pre/build/vue-dev/vueCommon.js
page.html#/:1 Application Cache Progress event (3 of 3) 
page.html#/:1 Application Cache Cached event
vueCommon.js:102 GET http://120.132.3.52:8088/uci-pre/build/vue-dev/chunks/5.chunk.js net::ERR_FAILED
requireEnsure @ vueCommon.js:102
(anonymous) @ plugins.js?6991:7
(anonymous) @ cup.js:353
__webpack_require__ @ vueCommon.js:53
(anonymous) @ cup.js?5208:7
(anonymous) @ cup.js:134
__webpack_require__ @ vueCommon.js:53
(anonymous) @ cup.js:523
__webpack_require__ @ vueCommon.js:53
webpackJsonpCallback @ vueCommon.js:24
(anonymous) @ cup.js:1
plugins.js?6991:10 Error: Loading chunk 5 failed.
    at HTMLScriptElement.onScriptComplete (vueCommon.js:92)
page.js?4fd4:65 ---------------beforeEach--------------
page.js?4fd4:66 Object {name: undefined, meta: Object, path: "/", hash: "", query: Object…}
page.js?4fd4:67 Object {name: null, meta: Object, path: "/", hash: "", query: Object…}
page.js?1748:41 1.0.0
plugins.js?6991:45 ------------------------plugins--------------------------------
{}
plugins.js?6991:45 ------------------------plugins--------------------------------
{}
plugins.js?6991:45 ------------------------plugins--------------------------------
{}
vueCommon.js:102 GET http://120.132.3.52:8088/uci-pre/build/vue-dev/chunks/9.chunk.js net::ERR_FAILED
requireEnsure @ vueCommon.js:102
Classify @ page.js?4fd4:13
(anonymous) @ vue-router.common.js?f6d5:1825
iterator @ vue-router.common.js?f6d5:1633
step @ vue-router.common.js?f6d5:1541
step @ vue-router.common.js?f6d5:1545
(anonymous) @ vue-router.common.js?f6d5:1542
(anonymous) @ vue-router.common.js?f6d5:1644
(anonymous) @ page.js?4fd4:69
iterator @ vue-router.common.js?f6d5:1633
step @ vue-router.common.js?f6d5:1541
runQueue @ vue-router.common.js?f6d5:1549
confirmTransition @ vue-router.common.js?f6d5:1649
transitionTo @ vue-router.common.js?f6d5:1581
init @ vue-router.common.js?f6d5:2178
beforeCreate @ vue-router.common.js?f6d5:448
callHook @ vue.common.js?f9a0:2754
Vue._init @ vue.common.js?f9a0:3377
Vue$3 @ vue.common.js?f9a0:3429
(anonymous) @ page.js?1748:32
(anonymous) @ page.js:367
__webpack_require__ @ vueCommon.js:53
webpackJsonpCallback @ vueCommon.js:24
(anonymous) @ page.js:1
vue-router.common.js?f6d5:18 [vue-router] Failed to resolve async component default: Error: Loading chunk 9 failed.

相应截图

clipboard.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文