admin管理员组文章数量:1389750
I'm trying to get app cache to work:
CACHE MANIFEST
/css/style.css
/js/colors.js
/js/dropzone.js
/js/jquery.min.js
/js/script.js
/img/icon_analytics.png
/img/icon_exit.png
/img/icon_expand.png
/img/icon_list.png
/img/icon_lock.png
/img/icon_menu.png
/img/icon_more_content.png
/img/icon_settings.png
/img/icon_settings_black.png
/img/svg_icons/close_fullscreen.svg
/img/svg_icons/go_fullscreen.svg
/img/loader.gif
But here is what I'm getting in the console:
GET net::ERR_FAILED
(index):517 Uncaught ReferenceError: google is not defined
(index):524 GET .js net::ERR_FAILED
0.s3.envato/files/115114837/profile.jpg:1 GET .jpg net::ERR_FAILED
jquery.min.js:3 GET .woff2 net::ERR_FAILED
Apparently, it refuses to load any resources which are not specified in the .appcache file. I even tried to specify only the images, it still throws errors for the stylesheet and all .js files.
What's going on?
I'm trying to get app cache to work:
CACHE MANIFEST
/css/style.css
/js/colors.js
/js/dropzone.js
/js/jquery.min.js
/js/script.js
/img/icon_analytics.png
/img/icon_exit.png
/img/icon_expand.png
/img/icon_list.png
/img/icon_lock.png
/img/icon_menu.png
/img/icon_more_content.png
/img/icon_settings.png
/img/icon_settings_black.png
/img/svg_icons/close_fullscreen.svg
/img/svg_icons/go_fullscreen.svg
/img/loader.gif
But here is what I'm getting in the console:
GET https://www.google./jsapi net::ERR_FAILED
(index):517 Uncaught ReferenceError: google is not defined
(index):524 GET http://www.google-analytics./analytics.js net::ERR_FAILED
0.s3.envato./files/115114837/profile.jpg:1 GET https://0.s3.envato./files/115114837/profile.jpg net::ERR_FAILED
jquery.min.js:3 GET http://fonts.gstatic./s/roboto/v15/mnpfi9pxYH-Go5UiibESIpBw1xU1rKptJj_0jans920.woff2 net::ERR_FAILED
Apparently, it refuses to load any resources which are not specified in the .appcache file. I even tried to specify only the images, it still throws errors for the stylesheet and all .js files.
What's going on?
Share Improve this question asked Mar 7, 2015 at 18:41 Nikolay DyankovNikolay Dyankov 7,27811 gold badges65 silver badges89 bronze badges1 Answer
Reset to default 10You need to add the NETWORK section, like this:
CACHE MANIFEST
CACHE:
/css/style.css
/js/colors.js
/js/dropzone.js
/js/jquery.min.js
/js/script.js
/img/icon_analytics.png
/img/icon_exit.png
/img/icon_expand.png
/img/icon_list.png
/img/icon_lock.png
/img/icon_menu.png
/img/icon_more_content.png
/img/icon_settings.png
/img/icon_settings_black.png
/img/svg_icons/close_fullscreen.svg
/img/svg_icons/go_fullscreen.svg
/img/loader.gif
NETWORK:
*
Read more here.
本文标签: javascriptExternal resources fail to load when using HTML5 cacheStack Overflow
版权声明:本文标题:javascript - External resources fail to load when using HTML5 cache - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744647268a2617471.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论