I'm a bit confused around the 5MB limit that Local Storage provides. Does this include the caching of images and files determined in a manifest file in a HTML5 APP for example?
Asked
Active
Viewed 1,040 times
1
-
1Browsers don't have the concept of a "manifest file" for web apps, so I think you have to explain more abut the context. The 5 MB restriction applies to data that is stored via the [`localStorage` interface](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage#localStorage), not to all local data. – Felix Kling Nov 17 '13 at 09:49
-
1Actually, HTML5 browsers do have a manifest system for offline apps. See [this link](http://diveintohtml5.info/offline.html) – Nov 17 '13 at 09:52
-
OK, I think this is becoming clearer. localStorage specifies what is stored locally. The caching of such objects like images etc is separate to local storage – user2696536 Nov 17 '13 at 10:42
-
@MikeW: Wow, I didn't know that. Doesn't seem to have anything to do with `lovalStorage` though. – Felix Kling Nov 17 '13 at 10:44
1 Answers
2
The limit for LocalStorage
is different from the limit used for Application Cache. Each browser has a different size, and people have found these values by experimenting with examples. You can have a look at these limits on http://grinninggecko.com/developing-cross-platform-html5-offline-app-1/.
There exists a related StackOverflow question about the limit for Application Cache on Cache Manifest Size Limit and Web Apps.

Community
- 1
- 1

José M. Pérez
- 3,199
- 22
- 37