Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome storage quota reporting lower than expected

I've got a situation where there is ~190GB of free disk space available on the system hard drive but when I query the storage quota in Chrome using navigator.webkitTemporaryStorage.queryUsageAndQuota() it only reports 186MB as being free.

I have cleared out all of the local database and application storage. I even completely deleted Chrome and its Application Support folder (mac).

The query shows that only a few kb are in use but only 186MB are free. What haven't I thought of that would cause this quota to be reporting so low? Also, it isn't in incognito mode and I made sure that all extensions are disabled

like image 267
joshontheweb Avatar asked Aug 01 '17 01:08

joshontheweb


2 Answers

Are you trying to query using chrome and get the entire available disk space? Because I don't believe this is possible using the queryUsageAndQuota() you can only request more or view the current pool size.

Eg mine comes back a little over 1gb when i try

navigator.webkitTemporaryStorage.queryUsageAndQuota ( 
function(usedBytes, grantedBytes) {  
    console.log('we are using ', usedBytes, ' of ', grantedBytes, 'bytes');
}, 
function(e) { console.log('Error', e);  }
);

Here is a good article explaining the pool size, essentially its never going to report more than half of the available disk space and of that any app can only have 20% of that.

If you just have that one 190gb drive you would think you still have around 19gb as the max for the app!

HOWEVER try hitting chrome://quota-internals/ and for me i found the disk space to be 12.59 GB which when i do the calculations again comes in around the 1.5gb mark then minus any installed apps and already used cache space brings it to the quota limit i got earlier. So Perhaps check the profile size directory. You can also see any other entries in the Usage and Quota tab.

like image 109
user685590 Avatar answered Oct 24 '22 00:10

user685590


You don't need to ask for more temporary storage as the allocation is automatic, and you can't get beyond the maximum limit (as described in the table).

According to Managing HTML5 Offline Storage part of the documentation.

like image 33
Eren Tantekin Avatar answered Oct 24 '22 00:10

Eren Tantekin