解决微信小程序web-view中的网页存在缓存的问题

问题描述:

在微信小程序中使用web-view嵌入html网页后,当html中的内容发生改变后,用小程序打开却还是以前的内容,这是因为当前html进行了缓存。

前端解决方案:

在html页面设置如下代码,使其不缓存

<meta http-equiv="Cache-control" content="no-cache">

猜你喜欢

转载自blog.csdn.net/weixin_44594219/article/details/129126265