关闭浏览器后,Edge不工作
appcache on IE, Edge not working after closing of browser
我有一个部分离线支持的web应用程序。
我的appcache文件是这样的:
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再次打开它,这将返回到备用url。此外,我可以访问/脱机/并使用应用程序。
关闭和重新打开浏览器在Firefox, IE11和Edge浏览器上不起作用。
这是一个错误在我的设置或应该工作?
检查:
-
确保你有扩展名
.appcache
,并在你的html中定义它,像这样:<!DOCTYPE html> <html lang="en" manifest="/offline.appcache"> </html>
根据http://html5doctor.com/go-offline-with-application-cache/.appcache
为标准。
-
确认当您通过chrome调试器访问appcache文件时,它具有mime类型
text/cache-manifest
-如果它没有,那么您需要确保您的web服务器处理.appcache
mime类型,在apache中它是在配置文件中使用这一行完成的:AddType text/cache-manifest .appcache
-
我不知道是否速记//工作在一个清单文件(我无法找到证据,它的支持),尝试提供https://外部url。
相关文章:
- 如何使用javascript操作SVG节点,使其在MS Edge中工作
- RTCPeerConnection在Microsoft Edge中工作吗?
- Javascript正则表达式在IE中失败,但在Chrome和Edge中工作
- 我正在尝试创建一个可以在Internet Explorer(Windows 10,又名Edge)中工作的html语音到文
- 引导导航在 MS Edge/IE 中无法正常工作
- 谷歌地图地理编码PHP可以在IE中工作,但不能在Chrome/mobile、Edge或Safari/mobile中工作.
- 使用Javascript将表导出到MS Excel,在MS Edge上无法工作
- Javascript没有'不能在firefox和IE/edge中工作
- Magento-Adobe Edge动画不工作
- Microsoft Edge:onclick事件停止工作
- 为什么这个动画在IE 11和Edge中工作,但在chrome中不行?
- 触摸API(如touchstart)不能在MS Edge中工作
- ES6通过jspm错误在Firefox, Edge, Vivaldi,但工作在Chrome, Opera
- 关闭浏览器后,Edge不工作
- localstorage事件监听器不能在Microsoft Edge上工作
- localStorage不能在Edge中工作
- WebSocket到localhost不能在Microsoft Edge上工作
- 在焦点上选择文本输入的所有内容;我不在Microsoft Edge工作
- 如何修复iframe不与Microsoft Edge一起工作
- Edge浏览器- iframe.document.open不工作