问题
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.
Note that this is an intranet application, so we have control of the devices.
回答1:
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...
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.
来源:https://stackoverflow.com/questions/5109768/application-cache-manifest-local-storage-size-limit