应用程序缓存清单+本地存储大小限制 [英] Application Cache Manifest + Local Storage Size Limit

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

问题描述

我正在构建一个可能具有大量离线存储需求的应用程序,我想知道是否可以同时使用脱机缓存清单(5MB)和localstorage(5MB)来使用10MB的存储空间。

I'm building an application that might have heavy offline storage needs, and I was wondering if it's possible to use both an offline cache manifest (5MB) as well as localstorage (5MB) to be able to use 10MB of storage.

请注意,这是一个Intranet应用程序,因此我们可以控制设备。

Note that this is an intranet application, so we have control of the devices.

推荐答案

我已经在Chrome,Firefox,Opera和Safari中对此进行了测试,所有浏览器都使用这两种技术,限制为5 MB。所以它可能......

I have tested this in Chrome, Firefox, Opera and Safari and all browser use for both technique a limit of 5 mb. So it's possible...

注意:
- localStorage和离线应用程序缓存的限制因浏览器而异。
- IE不支持离线应用程序缓存
- 在Opera和Safari中,您可以存储超过5mb的localStorage。
- 在chrome中,您可以通过url:chrome:// appcache-internals /和localStorage在地图localStorage中检查应用程序缓存的大小。

Note: - The limit of localStorage and Offline Application Caching varies per browser. - IE doesn't support Offline Application Caching - In Opera and Safari you can store more than 5mb of localStorage. - In chrome you can check size of application cache by url: chrome://appcache-internals/ and localStorage in the map localStorage.

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

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