Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot allocate more than 10GB of HTML5 persistent storage

When I try to execute

navigator.webkitPersistentStorage.requestQuota(1024 * 1024 * 1024 * 15, function (bytes) {
        console.log('Successfuly allocated ' + bytes + ' bytes of persistant storage.');
        }, function (e) {
            console.log('Failed to allocate persistant storage!');
        });

then Chrome will allocate only 10737418240 bytes which is exactly 10GB, but I asked for 15GB. Of course, I did click "allow" to allocate more storage. Has anybody met this problem?

EDIT: I don't see any reason why somebody has downvoted my question. The reason why I want to allocate that much data, is that our application must store large amount of medical images. 10GB is definitely not enough. Furthermore, from https://developer.chrome.com/apps/offline_storage#persistent:

Maximum storage space -- As large as the available space on the hard drive. It has no fixed pool of storage.

EDIT2: NO, my disk is not full. Available space is around ~110GB.

like image 845
Signum Avatar asked Oct 06 '15 13:10

Signum


People also ask

How do I increase HTML5 offline storage space?

What Is HTML5 Offline Storage. Solution 1: Clear Cookies. Solution 2: Reset Your Browser. Solution 3: Directly Remove Cookies for the Website.

How much data can a browser hold in memory?

The global limit is calculated as 50% of free disk space. In Firefox, an internal browser tool called the Quota Manager keeps track of how much disk space each origin is using up, and deletes data if necessary. So if the free space on your hard drive is 500 GB, then the total storage for a browser is 250 GB.

What is browser storage space?

Web storage, sometimes known as DOM storage (Document Object Model storage), is a standard JavaScript API provided by web browsers. It enables websites to store persistent data on users' devices similar to cookies, but with much larger capacity and no information sent in HTTP headers.


1 Answers

I have reported bug to Google. Turns out that max persistent storage quota is indeed 10GB, but documentation saying "As large as the available space on the hard drive" is incorrect.

https://bugs.chromium.org/p/chromium/issues/detail?id=540574&q=persistent%20storage&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

like image 185
Signum Avatar answered Sep 29 '22 06:09

Signum