开发者

HTML5 iphone offline webapp

开发者 https://www.devze.com 2023-01-12 04:46 出处:网络
So i know that \"offine mode\" is supposed to work when you have no internet connection. But suppose I build a local network webapp, 开发者_StackOverflow社区let\'s say at 192.168.1.100, then I leave m

So i know that "offine mode" is supposed to work when you have no internet connection. But suppose I build a local network webapp, 开发者_StackOverflow社区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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消