Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22

前端 未结 4 947
忘了有多久
忘了有多久 2020-12-08 19:46

I\'ve written a webapp that allows you to store the images in the localStorage until you hit save (so it works offline, if signal is poor).

When the localStorage rea

4条回答
  •  借酒劲吻你
    2020-12-08 20:35

    You can't, it's hard-wired at 5MB. This is a design decision by the Chrome developers.

    In Chrome, the Web SQL db and cache manifest also have low limits by default, but if you package the app for the Chrome App Store you can increase them.

    See also Managing HTML5 Offline Storage - Google Chrome.

提交回复
热议问题