How to disable cache in android webview?
android, webview
Solution
Please add below code
mWebView.getSettings().setAppCacheEnabled(false);
mWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
Please remove app from history task and test its working.
Problem
In my android webview my webpage is loading even without internet because of cache, so i want to disable cache in android webview, can anyone help me how to do this? I am using following lines in my webview, but still i am not able to disable cache. ``` myBrowser.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); myBrowser.getSettings().setAppCacheEnabled(false); ``` Please suggest me if there are some other methods