Set Google Chrome media cache size

1

1

I'm streaming images and videos from my server, with a player that loops over them.

Since thoose files can be very large, i need my client to load them from cache when the player plays more time the same media, but i can't figure out how to force it.

I'm running Google Chrome with

--disk-cache-size=5000000000
--media-cache-size=5000000000
--disk-cache-dir="C:\chrome_cache"

of course the folder exists, but looking at media in network tab, it looks like the browser downloads every media again and again and again....

Is there a solution to really force the cache size? Looking at the image aboce, it's seems to me that currently it's not using the 5GB i setted as limit.

enter image description here

GiuServ

Posted 2017-02-15T16:06:55.783

Reputation: 138

Answers

1

The cache has a maximum size of 2147483647 bytes that is 2*1024**3-1 or 2GB less a byte. Any size above that is ignored and the default size is used.

Dan D.

Posted 2017-02-15T16:06:55.783

Reputation: 5 138

0

Dark Knight

Posted 2017-02-15T16:06:55.783

Reputation: 158