Increase the caching file size on chrome (similiar to browser.cache.disk.max_entry_size on firefox) - google-chrome

We run a system which shows some medias (images, videos, etc.).
As system we have a ubuntu with a kiosk google chrome, now we have the issue that larger files are not cached.
As example we have a video which is 54mb large and will be redownloaded every time.
The header (max-age, etag) etc. are correct on the backend, as smaller files are cached correctly.
For Firefox we found the option "browser.cache.disk.max_entry_size", after we increased that option 100mb, the video with 54mb was cached on firefox.
Is there a similar option for google chrome ?
Thanks you in advance.
I tried searching for a parameter to increase the limit, but don't found one.
I found the option "media-cache-size" which was removed a lot years ago.
There is the option "--disk-cache-size" which defines the size of the whole cache (instead per file).
I don't event found out what the limit for the cache is.

Related

Caching videos using Chrome, for use in a Kiosk?

We are putting together a dashboard using Chrome, that will be using Windows' kiosk mode. As part of this, the page will load a playlist of videos to be displayed back to back. The issue we are running into is that Chrome does not seem to be caching the videos (MP4s from a site we own), meaning we are dealing with a network load every time. This is observed by:
loading bar in the scrubber slowly making its way
videos stop loading when computer goes off line, even though they played 3 minutes ago
This is not ideal since it means we are network dependent and it also means we could chew through our data quota very fast.
Does anyone know how to force Chrome to cache these videos, or failing that a workaround to the issue?

HTML 5 Cache manifest

My question is rather simple. Is there a way in the cache manifest file (or In the html) to tell iPhone, iPad or other never to cache specific files?
I have a made a small webpage that also works as a web app and there is some of the page that never should be cached.
Yes, you can list the files in the Network section to tell the browser to never save the files.Lines from the book diveintohtml5
The line marked NETWORK: is the beginning of the “online whitelist” section. Resources in this section are never cached and are not available offline.
For device or browser specific manifest, you can not do anything from JavaScript side. You have to do additional server side detection for that.

Why the size of a html file from Chrome Developer->Network is different with its actually size?

From Chrome browser developer tools->Network tab, I see the size of one of my html file is 183KB, but after saving this html file to local computer, from its property I can see it's more than 600KB, so why the different here?
The site you are inspecting probably uses compression (gzip or deflate). It's a common practice to improve website loading time. For example, this StackOverflow page size is 42 KB and it's compressed to 11 KB.

Cannot Replay Cached Video in IOS5 Safari with HTML5

I'm working on a site using cached video in HTML5. It works fine on a laptop using Safari. When I test on mobile Safari using IOS 5, I see the following:
Site works and plays video fine when 1st loaded.
I get prompted if I want to cache 10 MB of data on my iPhone. I say yes. (Cache size in Safari was 9.5 MB) Website data page in mobile Safari settings confirms 9.5 MB are cached.
When I try to return to the website in a new tab, the HTML and images load, but for the video I get a play button with a line through it.
This happens regardless of whether I turn Airplane Mode on or off.
I have the exact same issue. I have seen various things by searching that suggest one of two things. Either HTML5 cache.manifest doesn't allow video, or mp4/m4v videos get cached with a different name and then don't get found after caching. I'm hoping there is a way to do it, but I still haven't found anything.

Should we not use HTML5 offline Manifest on iphone because of cache size is very limited?

Should we not use HTML5 offline Manifest on iphone because of cache size is very limited? I don't exactly about Android browser.
I'v a simple Mobile website with 20-25 pages which I would like to make it work offline too. This site has Images, CSS, Javascrpt, HTML output, one audio file of 100kb. so total size of website is around 3mb.
As i read iphone safari has only 5MB space reserved for cache which is very low. And even I use manifest to cache some files but if user has already surfed some other websites which were using Manifest too and it filled 5MB cache then even will browser take my app's files in cache?
A good link related to this http://techblog.viewbook.com/2011/02/mobile-safari-offline-application-cache-limit/
If other websites are using the application cache, they will get their own 5Mb to use. Different sites don't share appcache data.
Yes, you should use it.
5MB is the standard storage size available to offline apps provided by browsers, it is not unusual, 5MB is the level set by the HTML5 standard.
The vast majority of offline capable apps will fit within 5MB, not-forgetting theres a WebSQL databases if you need to store there too.
Remember, the offline storage is for offline apps, not the caching of entire websites for the sake of it.
Typically, an offline app will comprise only of a couple of actual HTML pages, with the rest being generated by JavaScript through the logic of the application.