Mini Program webview cache

for the web pages nested by webview in Mini Program, when the page is changed again, webview does not make corresponding changes, and trying to add a version number will not solve this problem.

Apr.07,2021

have you solved this problem? I have also encountered the same cache problem. Every time, you have to clear Wechat's data to


because even if you close Mini Program, it will still run in the background, so you perform some data reset or update operations during his life cycle. In order to solve this problem, for example, onShow is done when it appears, and some things can also be operated in the relative shutdown function


onShow : function(){
    this.onLoad()
}

forced refresh, tested to work, although the method is evil. The official has not given a solution for the time being


IOS set-> General-> Storage Space-> Clean Wechat cache, so that you can clear the cache in Mini Program's webview

Menu