为5MB的W3C Web存储事实上的限制? [英] Is 5MB the de facto limit for W3C Web Storage?

查看:95
本文介绍了为5MB的W3C Web存储事实上的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待到使用浏览器的sessionStorage Web应用程序,并试图找到大小限制的最新信息。看来大多数桌面浏览器都强加一个5MB的限制。不过,我没有找到在移动浏览器最近许多文章,也没有信息。

I am looking into using browser sessionStorage for a web application, and was trying to find current information on size limitations. It appears most desktop browsers have imposed a 5MB limit. However, I am not finding many recent articles nor information on the mobile browsers.

在W3C Web存储规范的磁盘空间说:五兆大多任何限制每个产地建议。实施反馈是值得欢迎的,将被用于更新在将来这个建议。

The Disk space of the W3C Web Storage specification says "A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future."

有关 localStorage的的怪异模式HTML5兼容性页面有2009年6月12日最后一次重大更新,并只包括对于过去几年的数据当前的浏览器:IE8,FF 3.5b4,苏丹武装部队4,Chrome的2

The QuirksMode HTML5 compatibility page for localstorage has its last major update on 12 June 2009 and only includes data for last years current browsers: IE8, FF 3.5b4, Saf 4, Chrome 2.

根据介绍DOM存储,IE8允许Web应用程序存储将近10 MB的用户数据。 介绍的sessionStorage 似乎证实说:Firefox的和Safari的存储限制为5MB每个域,Internet Explorer的限制是每个域10 MB。

According to Introduction to DOM Storage, IE8 "allows Web applications to store nearly 10 MB of user data." Introduction to sessionStorage seems to confirm that "Firefox’s and Safari’s storage limit is 5MB per domain, Internet Explorer’s limit is 10 MB per domain."

Web存储:更简单,功能更强大的客户端数据存储从歌剧开发者网站状态 截至目前,已实施网络存储,包括Opera大多数浏览器,放置存储限制在每个域500万桶。

Web Storage: easier, more powerful client-side data storage from the Opera developer site states "As of now, most browsers that have implemented Web Storage, including Opera, have placed the storage limit at 5 Mb per domain."

最近铬的问题(#42740 )把一个5MB配额会话存储。

A recent chromium issue (#42740) put a 5mb quota on session storage.

第5章客户端数据存储从的Building iPhone应用程序使用HTML,CSS和JavaScript 国家在写这篇文章的时候,浏览器的大小限制localStorage的和的sessionStorage仍然在变化。

Chapter 5. Client-Side Data Storage from Building iPhone Apps with HTML, CSS, and JavaScript states "At the time of this writing, browser size limits for localStorage and sessionStorage are still in flux."

问:基于这些信息,我应该只是假设5MB是极限,或者我应该花时间测试不同的浏览器?有谁知道现有的测试套件(一拉 Browserscope ),将有这些结果?

Question: Based on this info, should I just assume 5MB is the limit or should I spend time testing different browsers? Does anybody know of an existing test suite (a la Browserscope) that would have these results?

推荐答案

假设对HTML5网页存储最小的上限为5MB,这将是明智的去给你有什么样的信息presented这个问题的答案,并有一直psented关于W3C Web存储$ p $。一定要提防一切都在变化,但我不认为这会限制彻底改变。

Assuming that the smallest limit for html5 web storage is 5mb, it would be sensible to go with that answer given what information you have presented, and has been presented about W3C web storage. Do beware that everything is in flux, but I don't think this limit will change drastically.

这篇关于为5MB的W3C Web存储事实上的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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