离线 Web 应用程序的案例
随着许多浏览器添加了适当的本地存储支持(以及整个 HTML5 的热潮),有很多关于离线 Web 应用程序与桌面软件竞争的讨论。但是,事实上 - 在浏览器上快速“清除私人数据”(很多人都会这么做) - 会清除所有本地存储数据。
我现在认为浏览器中的本地存储最多只能用于在与 Web 服务器同步之前临时缓存数据,但由于我上面概述的问题,真正的离线 Web 应用程序不能永久依赖 HTML5 的本地存储。
实际上广泛依赖数据的离线 Web 应用程序是否存在范围?
With many browsers adding proper local storage support (and with this whole HTML5 buzz), there is a lot of talk about offline web apps competing with desktop software. But, as a matter of fact - one quick "clear private data" on your browser (which a lot of people do) - clears all the local storage data.
I'm now thinking that local storage in browsers can at best be used to cache data temporarily before being sync-ed with the web server, but truly offline web applications can't rely on HTML5's local storage permanently due to the problem I outlined above.
Is there a scope for offline web applications that actually depend on data extensively?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的看法是,在线网络应用程序的离线功能可以与桌面软件竞争,但不能与纯粹的离线网络应用程序竞争。
为什么?在线网络应用程序的主要缺点是,当您在执行任何工作时失去网络连接时会发生什么情况。既然这个问题已经解决了,那么竞争就真正开始了。想象一下在线编辑文档,然后在没有互联网的情况下四处走动,返回在线状态,然后同步更改并继续工作,就像什么都没发生一样。那真是太棒了。
为此,浏览器应该允许将数据存储在您可以选择的位置,这意味着可以访问操作系统层,但这可能不会很快发生......
My take on this is that the offline capability of online web apps can compete with desktop software, but not pure offline web-apps.
Why? Well, the major drawback of online web apps was what happens when you lose your network connection when doing any work. Seeing as this can be resolved now, the competition is truly on. Imagine editing a document online, then move around without internet, come back online and then sync the changes and continue to work as if nothing happened. That is truly awesome.
For this to work, the browser should allow to store data in a location that you can pick which would mean access to OS layer, which will probably not happen anytime soon...