我有一個web應用程序,部分脫機支持。IE上的appcache,關閉瀏覽器後edge不工作
我的應用程序緩存文件看起來像這樣:
CACHE MANIFEST
# Datestamp 2015-10-07 GIT14a6ade78ef2ab6434871e90f7f1e70784bc1536
CACHE:
/offline/
/bundles/agrihealthahp/css/admin.css
/bundles/agrihealthahp/css/print.css
/bundles/agrihealthahp/css/offline-language-english.css
/bundles/agrihealthahp/css/offline-language-english-indicator.css
/bundles/agrihealthahp/css/offline-theme-default.css
//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css
//code.jquery.com/ui/1.11.2/themes/le-frog/jquery-ui.css
/bundles/bmatznerfoundation/css/foundation.min.css
//fonts.googleapis.com/css?family=Open+Sans+Condensed:300
/apple-touch-icon.png
/apple-touch-icon-57x57.png
/apple-touch-icon-72x72.png
/apple-touch-icon-76x76.png
/apple-touch-icon-114x114.png
/apple-touch-icon-120x120.png
/apple-touch-icon-144x144.png
/apple-touch-icon-152x152.png
/combine.c6f06a9f43e79d6d26af18e22b205cf4.js
/bundles/bmatznerfoundation/js/vendor/jquery.js
/bundles/bmatznerfoundation/js/foundation/foundation.js
/bundles/bmatznerfoundation/js/foundation/foundation.reveal.js
/bundles/agrihealthahp/js/offline-simulate-ui.min.js
//code.jquery.com/ui/1.11.2/jquery-ui.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.4.0/moment-timezone.min.js
/bundles/agrihealthahp/images/dib-8d.png
/bundles/agrihealthahp/images/dib-9da.png
/bundles/agrihealthahp/images/dib-10d.png
/bundles/agrihealthahp/images/dib-10da.png
/bundles/agrihealthahp/images/dib-undefined.png
NETWORK:
*
FALLBACK:
//fallback.html
一切適用於Chrome,包括能夠關閉瀏覽器,然後用www.domain.com/anything離線時再次打開它,它會回到後備網址。另外,我可以訪問/脫機/並使用應用程序。
關閉瀏覽器並重新打開不適用於Firefox,IE11和Edge瀏覽器。
這是我的設置或應該工作的錯誤?
即時假設您有清單屬性,UTF-8編碼並提供了文本/緩存清單MIME類型正確嗎? :) –
它在這裏:http://ahp.agrihealth.co.nz/bundles/agrihealthahp/offline.appcache,我用http://manifest-validator.com/驗證它不能在網站上顯示你,但是什麼我上面描述的工程在Chrome上運行 – jdog
您能否包含加載這個appcache文件的HTML頁面的代碼? – Eric