HarmonyOS webview codecache是否有存储上限和清理策略

HarmonyOS
2024-12-25 14:00:45
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
shlp

(1)接口没有设置存储上限,存储上限由内核自动管理;

(2)开发者可以主动调用webviewContronller下面的接口removeCache接口来清理,会清空内存缓存、磁盘缓存和code cache。

详细文档可参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-webview-V5#removecache

分享
微博
QQ
微信
回复
2024-12-25 16:34:46
相关问题
webview是否支持CodeCache
982浏览 • 1回复 待解决
HarmonyOS webview是否支持CodeCache
201浏览 • 1回复 待解决
HarmonyOS H5app通信是否传输上限
95浏览 • 1回复 待解决
webviewCodeCache支持程度
761浏览 • 1回复 待解决
HarmonyOS Web是否缓存策略
156浏览 • 1回复 待解决
HarmonyOS webview是否支持indexDB存储
648浏览 • 1回复 待解决
HarmonyOS 是否清理urlcache的方法
660浏览 • 1回复 待解决
Image组件是否三级缓存策略
1149浏览 • 1回复 待解决
如何获取缓存数据清理缓存?
678浏览 • 1回复 待解决