Clears cached data containing application resource files (images, HTML, JavaScript files), cookies, and items stored in the Local Storage
Example
const clearCacheOptions = {
appcache: true,
cache: true,
cookies: true,
localStorage: true
};
fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
Options
- cache: browsing data cache for html files and images (caching)
- cookies: browser cookies
- localStorage: browser data that can be used across sessions (local storage)
- appcache: html5 application cache