in my application, I use webview to download a website for mobile devices. I have successfully created a webview for caching. But if the device is disconnected and the user wants to visit a page that has not been visited before it is displayed. This is understandable, because there are no analogues in the cache for a page not visited. Therefore, web browsing displays the Page Not Available page.
So to my question:
Can I check if a page exists in the cache before loading it into a web view?
benevolently
Christian
source share