如何针对小程序公众号,Webview小程序缓存导致的不更新解决方法 在开发公众号、webivew小程序时候,经常会遇到,H5包更新了,用户手机不更新。 解决方案 在nginx配置那添加(运维来操作而不是前端开发者) add_header Cache-Control no-cache; 针对单页面 location = /index.html { expires off; add_header Cache-Control no-cache; } 解决!