我的清单文件工作正常,直到今天早上,我现在在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证书,因为这是我第一次处理缓存清单时的一个陷阱,所以不要相信这是问题.
这是我的清单(它是由grunt生成的,似乎是有效的)
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: *
所以我的问题是,是否有人知道错误的含义以及如何修复错误?
编辑:这个问题在一天之后就消失了,但是我不知道是什么导致它或者我可能做了什么来修复它我做的唯一动作就是清除我在chrome中的标志(实验性功能)但这没有立即生效,以消除错误
以下是有关此错误的其他一些事实
其他具有相同代码的开发人员没有看到这个错误(相同版本的chrome)(我知道这会产生一个糟糕的SO问题,如果它不可重复,但我不知道错误甚至意味着什么,因此问的主要原因)
这发生在开发版本和生产版本上(使用Apache的开发版本和使用nginx的生产)
我知道使用appcache的其他网站没有这种情况发生(deezer.com)
编辑:截至04/09/2017我仍然没有找到这个错误的根本原因或实际上再次看到它
我遇到了同样的问题,发现了两个原因:
我在隐身模式下使用Chrome(它应该在普通模式下使用)
我的服务器返回301重定向而不是200 OK(它应该返回200 OK)
通过修复上述两个问题,我能够解决问题.