The browser never completely clears the cache
Hello, I discovered a strange behaviour concerning the cache clean-up mechanism. Steps:
- Do a fresh install of Privacy Browser and start it
- Bookmark the page for convenience
- Now, disconnect the device from the Internet: Wi-Fi, mobile data and everything. Go offline.
- Close the browser using "Clear and Exit"
- Through Android settings, force close Privacy Browser. Clear the Cache and reboot the device if you want
- Restart Privacy Browser and open the previously created bookmark
A ghost of the Twitter website will show up, with icons, buttons and cookie bar. From where it came from? Why the browser does not simply show an error saying that there is no Internet and so it can't load the URL?
I think the culprit here is the WebView, and maybe... IndexedDB or similar? The only way I found to delete that strange cache, is to clear all the Privacy Browser data through Android settings. Other WebView based browsers do the same thing (Lightning). Can you investigate on this? Thanks!
#2 Updated by Soren Stoutner almost 2 years ago
There appears to be no way to delete these cached files. A bug report has been filed with Google: https://code.google.com/p/android/issues/detail?id=233826&thanks=233826&ts=1486670530.
#4 Updated by Soren Stoutner almost 2 years ago
- Status changed from In Progress to Closed
It turns out we can manually delete the entire `app_webview` folder on `Clear and Exit`. This is a nice solution because it gets rid of a bunch of cruft `WebView` leaves lying around.