google-chrome - 缓存 list : Application Cache Error event: Resource fetch failed (2)的原因

标签 google-chrome html5-appcache cache-manifest

直到今天早上,我的 list 文件运行良好,现在在chrome版本36.0.1985.143 m中不断出现以下错误

Creating Application Cache with manifest https://localhost/static/app/cache.manifest dashboard:1
Application Cache Checking event dashboard:1
Application Cache Downloading event dashboard:1
Application Cache Progress event (0 of 192) https://localhost/static/app/images/ui-icons_454545_256x240.png dashboard:1
Application Cache Error event: Resource fetch failed (2) https://localhost/static/app/images/ui-icons_454545_256x240.png

当我通过链接访问时,资源在那里。但是我在任何地方都找不到详细说明(2)含义的地方(见到很多代表-1但没有见到(2))。我有一个有效的https证书,因为这是我第一次处理缓存 list 时的陷阱之一,因此请不要相信这是问题所在。

这是我的 list (由咕unt声生成,似乎有效)
CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time: Wed Aug 20 2014 10:37:07 GMT+0200 (W. Europe Daylight Time)

CACHE:
fonts/JohnstonITCStd-Bold.eot
fonts/JohnstonITCStd-Bold.otf
fonts/JohnstonITCStd-Bold.svg
fonts/JohnstonITCStd-Bold.ttf
fonts/JohnstonITCStd-Bold.woff
fonts/JohnstonITCStd-BoldIta.eot
fonts/JohnstonITCStd-BoldIta.otf
fonts/JohnstonITCStd-BoldIta.svg
fonts/JohnstonITCStd-BoldIta.ttf
fonts/JohnstonITCStd-BoldIta.woff
fonts/JohnstonITCStd-Light.eot
fonts/JohnstonITCStd-Light.otf
fonts/JohnstonITCStd-Light.svg
fonts/JohnstonITCStd-Light.ttf
fonts/JohnstonITCStd-Light.woff
fonts/JohnstonITCStd-LightIta.eot
fonts/JohnstonITCStd-LightIta.otf
fonts/JohnstonITCStd-LightIta.svg
fonts/JohnstonITCStd-LightIta.ttf
fonts/JohnstonITCStd-LightIta.woff
fonts/JohnstonITCStd-Medium.eot
fonts/JohnstonITCStd-Medium.otf
fonts/JohnstonITCStd-Medium.svg
fonts/JohnstonITCStd-Medium.ttf
fonts/JohnstonITCStd-Medium.woff
fonts/JohnstonITCStd-MediumIta.eot
fonts/JohnstonITCStd-MediumIta.otf
fonts/JohnstonITCStd-MediumIta.svg
fonts/JohnstonITCStd-MediumIta.ttf
fonts/JohnstonITCStd-MediumIta.woff
images/ajax-loading.gif
images/angle-purpure.png
images/angle-red.png
images/angle-yellow.png
images/apple-touch-icon-114x114.png
images/apple-touch-icon-144x144.png
images/apple-touch-icon-57x57.png
images/apple-touch-icon-72x72.png
images/apple-touch-startup-image-2048x1496.png
images/background.jpg
images/bathroom.png
images/blocker-white.png
images/blocker.png
images/bottom-arrow.png
images/box-shadow-bg.png
images/btn-arrow-bottom.png
images/btn-close.png
images/btn-counter.png
images/btn-left-panel.png
images/btn-sidebar-left-open.png
images/btn-top-panel.png
images/calendar5.png
images/checkbox-big.gif
images/checkbox.gif
images/close-lightbox-button.png
images/copy-icon-dark.png
images/copy-icon.png
images/copy_button.png
images/correct8.png
images/customer_photo_card.jpg
images/customer_photo_lightbox.jpg
images/customer_photo_profile.jpg
images/customer_photo_sidebar.jpg
images/customer_photo_smallcard.jpg
images/dashboard-tab-active-bg.png
images/dashboard-tab-active-gray-bg.png
images/decor-1.jpg
images/decor-2.jpg
images/decor-3.jpg
images/decor-4.jpg
images/decor-arrow-bottom-gray.png
images/decor-item-bg-purpure.png
images/decor-item-bg-red.png
images/decor-item-bg-yellow.png
images/decor-item-bg.png
images/delete-icon-16x16.png
images/delete-icon-24x24.png
images/delete-icon-32x32.png
images/delete-icon-48x48.png
images/delete-icon-64x64.png
images/dialog-decor-purpure.png
images/dialog-decor-red.png
images/dialog-decor-yellow.png
images/dialog-decor.png
images/dialog-overlay.png
images/flag_icon_de.png
images/flag_icon_fr.png
images/flag_icon_it.png
images/flag_icon_uk.png
images/flight-big.png
images/flight-small.png
images/flight.png
images/form-dialog-bg.png
images/general_user_card.jpg
images/general_user_card.png
images/general_user_lightbox.jpg
images/general_user_profile.jpg
images/general_user_sidebar.jpg
images/general_user_smallcard.jpg
images/help-bg.png
images/ico-contact-group-1-small.jpg
images/ico-contact-group-1.jpg
images/ico-contact-group-2-small.jpg
images/ico-contact-group-2.jpg
images/icon-1.png
images/icon-2.png
images/icon-attention.png
images/icon-delete-big.png
images/icon-delete.png
images/icon-dragable.png
images/icon-mail-small.png
images/icon-mail.png
images/icon-minus.png
images/icon-mobile-small.png
images/icon-mobile.png
images/icon-pdf-small.png
images/icon-pdf.png
images/icon-phone-small.png
images/icon-phone.png
images/icon-plus.png
images/icon-power.png
images/icon-remove-big.png
images/icon-remove.png
images/icon-user.png
images/icon.png
images/icons-bg.png
images/icons-big-bg.png
images/icons-slider-arrow-left.png
images/icons-slider-arrow-right.png
images/icons-small-bg.png
images/icons-xsmall-bg.png
images/info6.png
images/line25.png
images/lock-close-icon.png
images/lock-open-icon.png
images/logo-small.gif
images/logo.png
images/outing.png
images/radio-big.png
images/remove11.png
images/search28.png
images/select-arrow-bg.png
images/select-dropdown-bg.png
images/select-sep-bg.gif
images/sep-1-bg.gif
images/signal_disabled_big.jpg
images/signal_disabled_small.jpg
images/signal_pause_big.jpg
images/signal_pause_small.jpg
images/signal_waiting_validation_big.jpg
images/signal_waiting_validation_small.jpg
images/sleep.png
images/sort27.png
images/sub-header-bg.png
images/sub-header-bottom-bg.png
images/temp-1.jpg
images/temp-10.gif
images/temp-2.jpg
images/temp-3.jpg
images/temp-4.jpg
images/temp-5.jpg
images/temp-6.jpg
images/temp-7.jpg
images/temp-8.png
images/temp-9.jpg
images/time-line-bg.gif
images/time-line-sep-bg.gif
images/tooltips-bg.png
images/top-arrow-gray.png
images/top-arrow-white.png
images/ui-bg_flat_0_aaaaaa_40x100.png
images/ui-bg_flat_0_eeeeee_40x100.png
images/ui-bg_flat_55_ffffff_40x100.png
images/ui-bg_flat_75_ffffff_40x100.png
images/ui-bg_glass_65_ffffff_1x400.png
images/ui-bg_highlight-soft_100_f6f6f6_1x100.png
images/ui-bg_highlight-soft_25_0073ea_1x100.png
images/ui-bg_highlight-soft_50_dddddd_1x100.png
images/ui-icons_0073ea_256x240.png
images/ui-icons_454545_256x240.png
images/ui-icons_666666_256x240.png
images/ui-icons_ff0084_256x240.png
images/ui-icons_ffffff_256x240.png
css/app-styles.min.css
javascripts/app/router_dashboard.js
javascripts/app/router_profile.js
javascripts/app/router_settings.js
javascripts/app/router_test.js
javascripts/distro/app-dashboard-built.js
javascripts/distro/app-profile-built.js
javascripts/distro/app-settings-built.js
javascripts/dispatch.js

NETWORK:
*

所以我的问题是,有人知道错误的含义以及如何解决该错误吗?

编辑:这个问题一天后就消失了,但是我不知道是什么原因引起的,或者我可能做了什么来修复它,我唯一要做的 Action 就是清除我在chrome中的标记(实验功能),但是这个没有立即生效,消除错误

这是有关此错误的其他一些事实
  • 使用相同代码的其他开发人员没有看到此错误(相同版本的chrome)(我知道,如果它不可重现,则会出现一个严重的SO问题,但我不知道该错误甚至意味着什么,因此是提出问题的主要原因)
  • 开发版本和生产版本(使用Apache的开发版本和使用nginx的生产)都发生了这种情况。
  • 我知道要使用appcache的其他网站(deezer.com)并没有发生这种情况

  • 编辑:截至2017年4月9日,我仍然从未发现此错误的根本原因或实际上再次看到它

    最佳答案

    我遇到了同样的问题,发现了两个原因:

  • 我在隐身模式下使用Chrome(应在正常模式下使用)
  • 我的服务器返回301重定向而不是200 OK(它应该返回200 OK)

  • 我可以通过解决以上两个问题来解决该问题。

    关于google-chrome - 缓存 list : Application Cache Error event: Resource fetch failed (2)的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25400524/

    相关文章:

    python - 如何使用 Python 打开 Google Chrome 并传入参数?

    php - SagePay/Chrome 80/3D Secure/Samesite 和丢失的 session ID

    html - 本地存储可以被认为是安全的吗?

    javascript - net::ERR_FAILED 用于 manifest.cache 中的网络项

    ios - HTML 5 缓存 list 不再在 Chrome 的 IO 中工作

    android - 为什么通过 WebRTC 从 Android 流式传输时视频分辨率会发生变化

    javascript - 带有/dev/null 的 Puppeteer Chrome cache_dir 正在创建文件夹/dev/null

    javascript - 检查我的页面是否被缓存

    javascript - list 更改时 Html5 缓存不更新