问题
I am developing a web application for remote areas with little internet connectivity and was wondering if I can use HTML5 localStorage with a maximum size of 10MB and HTML5 local Database with a maximum size of 10MB for a total of 20MB of offline storage (Not including HTML5 Application Cache) or do browsers combine these quotas? Is HTML5 Application Cache a separate quota? Are there any other ways of getting more than 10MB of persistent storage?
回答1:
You might expect the browser to enforce a single limit for all storage an origin can use, but the major browsers are actually enforcing limits separately for each storage mechanism.
Source: http://www.html5rocks.com/en/tutorials/offline/storage/#quotas
That answers your question I think.
来源:https://stackoverflow.com/questions/6589134/combining-html5-localstorage-and-local-database-for-more-space