Turns out this code works well.
The problem was that I was calling clearCache
on another webview, and as it turns out:
the cache is per-application, so this will clear the cache for all WebViews used.
As soon as I removed the call to clearCache
from the other webview, everything was working well.