I want to determine whether there is a cache or not when I read the cache on the webview.

Asked 2 years ago, Updated 2 years ago, 113 views

webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);

I would like to determine if there was a cache during page transition while caching in this way.

android webview

2022-09-30 19:56

1 Answers

I haven't verified it, but if you'd like to know:

The cache database that webview creates (/data/data//databases/webviewCache.db) is in sqlite format.If you checked the database before you transitioned the page and the URL was not registered, you could say that it did not exist in the cache.


2022-09-30 19:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.