HTML5 iPhone离线版Webapp [英] HTML5 iphone offline webapp
问题描述
因此,我知道当您没有互联网连接时,常规模式"应该可以工作.但是,假设我构建了一个本地网络webapp,比如说192.168.1.100,然后我离开家,离开了网络,然后尝试访问该地址.该webapp会从缓存中拉出,还是会说您有Internet,但主机无法访问"或类似的东西?
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?
当它可能无法按我希望的方式工作时,我不想对cache.manifests和WebDB感到疯狂.
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.
这篇关于HTML5 iPhone离线版Webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!