Increasing 5MB Storage Limit in Chrome - html

We have a POS app written in html5 and we are using the localStorage to store orders and other info.
I am experiencing the limits of the 5MB that chrome offers and it is causing the app to crash.
Is there an easy way to increase this limitation?
thanks

Check this link, it discusses your problem and it might help you
The db file path for chromium and chrome on windows vista look like...
C:\Users\<username>\AppData\Local\Chromium\User Data\Default\Application Cache\Index
C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Application Cache
Here's the sql statement to run...
insert into Quota values("http://127.0.0.1:8008/", 100000000);
You can run that command using the sqlite3 command line tool available
here, http://www.sqlite.org/download.html. Put whatever origin url you'd to
give more storage to in there.

No, there is no way to increase 5MB localStorage per-domain limit. You can use IndexedDB instead for storing your data, though. Read more: IndexedDB and Limits

Related

Increasing WebSQL size for chrome

I have a web application that uses a lot of offline storage. It was running good until the data increased and reached around 8MB. Whenever storing that much data to the WebSQL, I received error stating "The inspeted target has crashed." I assume that it has to do with the storage capacity, although I am not sure. Since everything was working fine until the data increased, I would like to check after increasing the WebSQL capacity. There is a post I read that talk about creating a manifest.json file. My question is
Does this work for web applications?
Where is this file placed?
What are the furhter steps to take after creating this file?
What about other browsers? Does this solve problem for only Chrome?
I think this has something to do with the implementation of your WebSQL. I have offline databases in WebSQL that are well over 100MB and load in Chrome without a hitch.

IndexedDB storage quota on Chrome

Now that finally Blobs are supported, I am writing a video caching layer to recall N recently downloaded videos.
Is there a way to query IndexedDB for the maximum allowed storage?
Is there a way to request a quota increase?
I am asking because none of the info I found searching seems to apply anymore. I have so far stored hundreds of megabytes of videos although some articles talk of a 5 (or sometimes 20) mb limit. I hope I am not building against a bug.
100+ mb stored so far with no issues using chrome 38.0.2125
I don't think Chrome limit on IndexedDB (or any storage) so far as OS can provide. Also note, IndexedDB storage are temporary storage and can be purged without notifying to the app. When Quota Management API, you will have assurance of persistent storage.

How to get AppEngine data to GWT client, only once

I have a 6MB binary file in my AppEngine backed app. I need to get this file to my GWT client to do many computations. I'm trying to avoid doing the computations on the server to save my instance hours quota. But this means I have to get the file to my client somehow.
I also don't want to download it to the app each time the app is opened, that would hurt my appengine outgoing bandwidth quota.
It would be nice to download it once, then have the client somehow store it for use the next time the app is opened.
How to best do this?
A ClientBundle? Use HTML5 Storage? Is this sort of thing just not done, and should I just do the computations on the server and send the result to the client?
The most easiest way to permanently cache the file is using application cache.
Another ways is HTML5 Storage (localStorage), but there is 2.5 MB limit. To use more than that amount, you have use IndexedDB (Chrome, Firefox, IE10) and WebSQL (Safari, Opera). A wrapper library like YDN-DB help in this case.
You can use DataResource:
https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#DataResource
The only problem you face is the file size. Different browsers have different limits - I've seen 5MB and 8MB numbers. If you can compress your file to be under 5MB, you should be fine with most browsers. (By the way, it's an enormous amount of data if it can't be compressed any further.)
Also, you can detect a mobile browser (or offer a different URL for mobile version), and do computations on the server for mobile users.

Offline webapps in HTML5 - Persist after closing the browser?

With HTML5's offline capabilities is it possible to create an app that will persist after the connection is lost and the browser is closed? Specifically, here's what I'd like to do:
Connect to the app while online. Download the entire app including a small database it runs on.
Close the browser and disconnect.
Open the browser again while offline and load the app from the local cache.
Thanks to Mark Pilgrim's excellent book I believe I have an idea of how to accomplish the first step, I'm mainly wondering if the last step is possible. If this is possible, I'm guessing it requires some configuration of the browser. Any settings I should be aware of that aren't obvious?
Thanks very much for any help offered.
The last step should be possible - it just depends on what extent you want to implement it to. To my knowledge it shouldn't require any browser settings. You just have to be aware of the limitations of local storage, which I believe is 5mb max at the moment (for most browsers). Obviously you'd have to perform the checks for such permissions as outlined int the Dive Into Html5 guide you linked.
The quickest and dirtiest way is to simply issue a GET request to your online app. If it responds correctly, then use the online version. If not, use the local cache. Just disguise the timeout/failed response as a 'loading' screen.

html5 local storage on SD card

HI!
I have searched a lot, but I didn't find the answer to this question: Is there any possibility to save or set the html5 local storage on SD card or locally on device? Can anybody help me?
Thanks!
I don’t think the Local Storage API lets you decide the physical location of the data being stored. It just lets you store key/value pairs in the user’s browser via JavaScript, like a cookie except that it stays local and isn’t transmitted to the server.
The browser might choose to put its local storage data onto an SD card, or the device that it’s running on, but you don’t get to inspect the physical location of the data.
See http://diveintohtml5.ep.io/storage.html#localstorage for a good guide on what local storage can do, and how to use it.
http://www.w3.org/TR/file-writer-api
I do belive this is what you would need. Read support is done and there are some chrome extensions that take advantage of it (write space), however the apps don't have write support because chrome dosen't have the api, because its still wip. The chrome folks are doing a nice job with it and I think its mostly done. I've been searching around for examples.