Skip to content

Commit 6981129

Browse files
authored
Merge pull request #15 from totalorder/master
Make sure to actually clear the cache on Android when clearCache=true
2 parents f445329 + 838be1d commit 6981129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/flutter_webview_plugin/WebviewActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void onReceiveValue(Boolean aBoolean) {
6161

6262
protected void clearCache() {
6363
if (getIntent().getBooleanExtra(CLEAR_CACHE_KEY, false)) {
64-
webView.clearCache(false);
64+
webView.clearCache(true);
6565
webView.clearFormData();
6666
}
6767
}

0 commit comments

Comments
 (0)