Cordova / PhoneGap Browser Cache Size

I am developing a Cordova application that uses browser functions to display an online site (i.e. not a local www / content).

Is it even possible to control how much data is cached by the application? Damn, can you even see that things are cached? I'm not sure if the application caches anything.

Ideally, I would like to specify the maximum cache size (for example, 50 MB), and whenever this is achieved, Cordoba automatically deletes old files and caches new files.

+5
source share
2 answers

I do not believe that there is any way to directly control this through JavaScript. The rules for the browser cache are executed by the device browser. Even worse, on iOS, the cache can be cleared at any time by the OS. Try searching here for some of the attempts that have been made for iOS.

+1
source

Cordoba uses a cache browser and there is no specific browser cache to configure it using cordava / phonegap

Example - IE cache size - 8-50 Mb FireFox - limit up to 50 Mb Google Chrome - 90 Mb, which you can configure in the browser for the browser to the limit

+1
source

Source: https://habr.com/ru/post/1257911/


All Articles