缓存清单大小限制和Web应用程序 [英] Cache Manifest Size Limit and Web Apps

查看:96
本文介绍了缓存清单大小限制和Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正处于编写应用程序的计划阶段,仍然选择我希望用来编写应用程序的技术。最初的想法是写一个网络应用程序,但这已经(有?)无法离线查看的垮台。然后我发现了缓存清单,这似乎是一个答案。

I am in the planning phases for writing an application, still choosing the technology that I wish to use to write the app. The initial idea was to write a web-app but this has (had?) the downfall of being unable to be viewed offline. I then discovered cache manifest, and this potentially seemed like an answer.

但是,从第一点开始,似乎缓存清单上存在大小限制。我找不到每个浏览器的大小限制的完整列表,所以我不知道它是否完全令人虚弱(尽管我认为它可能是)。我希望该应用程序可以使用的浏览器是Firefox,Chrome和移动Safari浏览器(也就是说,它必须在iPad上运行)。

However, since that first point it seems that there are size limits on Cache Manifest. I can't find a full list of the size limits for each browser, so I can't tell if it's completely debilitating (though I think it may be). The browsers that I wish the app to work on are Firefox, Chrome and the mobile Safari browsers (that is, it has to work on iPad).

我的理解是在大多数情况下,总缓存限制大约为5MB(随浏览器的不同而不同),但这对我的需求来说还不够。我希望离线存储所有用户的在线数据。这包括上传文件(PDF,图片)以及使应用程序在物理上工作所需的内容。在我看过的任何例子中,cache-manifest仅用于缓存离线内容,如html,css,javascript和网站的图像资源。它是否适合用户上传的PDF的离线存储?

My understanding is that in most cases there is a total cache limit of about 5MB (with it varying from browser to browser), but this would not be enough for my needs. I'm looking to store all of the users online data offline. This includes things like uploaded files (PDFs, pictures) as well as the content required to make the app physically work. In any example I've seen, cache-manifest has only been used to cache offline things like the html, the css, the javascript and the image resources of the website. Is it suitable for offline storage of PDFs the user has uploaded?

如果这个问题的答案是响亮的(我担心它可能是),是否有还有其他方法吗?或者是浏览器中的适当应用程序 - 即具有合理空间要求的应用程序 - 此时完全不可行?我们还在等待浏览器赶上开发的要求吗?

If the answer to this question is a resounding no (which I fear that it may be), are there any other solutions? Or is a "proper" app in a browser - that is, one with a reasonable space requirement - completely infeasible at this time? Are we still waiting for the browsers to catch up with the requirements of development?

编辑:只是添加,我知道Cache-Manifest没有限制HTML5规范,但实现似乎都限制它,这将影响我尝试编写的任何内容。

Just to add, I am aware that there is no limit on Cache-Manifest in the HTML5 specification, but the implementations all seem to limit it, and this will affect anything I attempt to write.

推荐答案

你可以在此处查看有关极限容量的更多信息: http://grinninggecko.com/developing -cross-platform-html5-offline-app-1 /

You can see more about limit capacity here: http://grinninggecko.com/developing-cross-platform-html5-offline-app-1/

这篇关于缓存清单大小限制和Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆