Application Cache total and individual file size limits in Chrome vs in Chrome Application webview

1,696 views
Skip to first unread message

Mac Pham

unread,
Sep 11, 2015, 2:31:35 PM9/11/15
to Chromium HTML5
Hello Internets,

I've got a web application that uses the HTML5 Application Cache to cache a couple of videos. The Application Cache seems to work fine when I open my web app in a tab in Chrome.

The problem arises when I have a Chrome Application which has a webview pointing to the same web app. The Application Cache gives me an error:

Application Cache Error event: Resource fetch failed (2) myvideofile.mp4

I know my video is about 3.7 MB and I can see from http://chrome/settings that my web app is using 9.6 MB of locally stored data.

If I understand https://developer.chrome.com/apps/offline_storage correctly, the Application Cache falls under Temporary Storage where the max limit cannot be changed and each app has 20% of the full size of the Temp Storage. Using this function I can see the granted total size of the Temporary Storage is 100 MB.

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

So I would have thought I have 20MB total for my web app which puzzles me why at 9.6 MB the AppCache is giving me this error. Unless there is another limit that is related to the maximum file size in the AppCache?

I can't find these Application Cache size limits reliably posted anywhere... it makes me think there is different rules for inside a webview in a Chrome App as well.

Help me obi-wan you're my only hope...

Mac Pham

unread,
Sep 14, 2015, 1:01:09 PM9/14/15
to Chromium HTML5
Some additional information. I changed to videos to 100 KB videos and I get the same error on a .js file now that is only 1.5 MB.

I don't know what the individual and total size limits are of the Application Cache in a Chrome App webview. Does anyone know the answer?

Mac Pham

unread,
Oct 13, 2015, 5:29:44 PM10/13/15
to Chromium HTML5


On Friday, September 11, 2015 at 2:31:35 PM UTC-4, Mac Pham wrote:
Reply all
Reply to author
Forward
0 new messages