Blocking the Webview cache

Asked

Viewed 336 times

3

I’m designing a Webapp, and I use a Webview to open a specific url within the app! Only the app is caching everything, so in case I come to make any changes to the site, the app doesn’t "compute" this update, because it reuses all the information that is cached!

How to block this cache? Which, I believe, is being generated by Webview.

The Webapp platform is android.

1 answer

2


Try disabling the cache like this:

mWebView.getSettings().setAppCacheEnabled(false);  
  • I put this on the oncreate??

  • Yes, it can be on onCreate

  • In this case ai Rafael Telles, it will enable the cache to disable have to put the false.

  • Ah yes, I typed wrong, correcting, thanks for the touch

Browser other questions tagged

You are not signed in. Login or sign up in order to post.