简体   繁体   English

在iOS上超过LocalStorage配额(dom错误22),但未设置私有模式

[英]LocalStorage quota exceeded (dom error 22) on iOS, but private mode not set

I'm trying to store a .json file in iOS localStorage. 我正在尝试在iOS localStorage中存储.json文件。 The file is 3.4mb uncompressed. 该文件未压缩为3.4mb。

When I try to store it, mobile Sarari rejects it with a DOM error 22: "An attempt was made to add something to storage that exceeded the quota". 当我尝试存储它时,移动Sarari拒绝它,并显示DOM错误22:“试图向存储中添加超出配额的内容”。

This doesn't happen when I test my app in Chrome, but it does happen in desktop Safari. 当我在Chrome中测试我的应用时,这不会发生,但在桌面Safari中会发生。 It seems Chrome automatically ups the quota to 10mb, whereas mobile Safari and desktop Safari do not and just fail. Chrome似乎会自动将配额增加到10mb,而移动Safari和台式机Safari不会,只会失败。

Why does storing a 3.4mb json file cause this error when the storage quota for iOS / Safari is 5mb? 当iOS / Safari的存储配额为5mb时,为什么存储3.4mb json文件会导致此错误?

Should also note that I have checked to see if private mode is enabled, and made sure it is not. 还应注意,我已经检查了是否启用了私有模式,并确保未启用它。

我听说如果浏览器处于私人或隐身模式,您会收到此错误。

Chrome在隐身模式下的限制为100MB。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Safari 的 html5 localStorage 错误:“QUOTA_EXCEEDED_ERR:DOM 异常 22:尝试向存储添加超出配额的内容。” - html5 localStorage error with Safari: “QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.” 有没有办法增加谷歌浏览器中 localStorage 的大小以避免 QUOTA_EXCEEDED_ERR: DOM Exception 22 - Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22 QuotaExceededError(DOM 异常 22):在 Safari 隐身模式下已超出配额 - QuotaExceededError (DOM Exception 22): The quota has been exceeded on Safari in incognito QuotaExceededError:Dom异常22:尝试向存储中添加超出配额的内容 - QuotaExceededError: Dom exception 22: An attempt was made to add something to storage that exceeded the quota 移动Safari localStorage和私有模式错误 - Mobile Safari localStorage and private mode error 在localStorage上捕获QUOTA_EXCEEDED_ERR - catch QUOTA_EXCEEDED_ERR on localStorage 防止localStorage QUOTA_EXCEEDED_ERR - Preventing localStorage QUOTA_EXCEEDED_ERR 如何在私有模式下的iOS Safari浏览器上启用LocalStorage? - How to enable LocalStorage on iOS Safari browser on private mode? 为什么收到 Firebase Quota 超出错误? - WHy getting Firebase Quota exceeded error? iOS Safari私密浏览localStorage和sessionStorage支持? - iOS Safari Private Browsing localStorage and sessionStorage Support?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM