HTML5 iphone offline webapp

假如想象 提交于 2019-12-11 06:06:24

问题


So i know that "offine mode" is supposed to work when you have no internet connection. But suppose I build a local network webapp, let's say at 192.168.1.100, then I leave my house, and i'm off the network, then I try to hit that address. Will the webapp pull from the cache, or will it say, "you have internet, but the host is unreachable" or some such thing?

I don't want to go crazy with cache.manifests and WebDB's when it might not work the way I hoped.


回答1:


If a particular resource is listed in the cache manifest, then that resource is always loaded from the application cache, even if there is a network connection. So yes, it will pull from the cache.



来源:https://stackoverflow.com/questions/3508875/html5-iphone-offline-webapp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!