[英]HTML5 iphone offline webapp
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.
但是,假设我构建了一个本地网络webapp,比如说192.168.1.100,然后我离开家,离开了网络,然后尝试访问该地址。 Will the webapp pull from the cache, or will it say, "you have internet, but the host is unreachable" or some such thing?
Webapp是从缓存中拉出,还是会说“您有Internet,但主机无法访问”或类似的东西?
I don't want to go crazy with cache.manifests and WebDB's when it might not work the way I hoped. 当它可能无法按我希望的方式工作时,我不想为cache.manifests和WebDB疯狂。
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.
所以是的,它将从缓存中拉出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.