1.页面加入标红的代码,让页面不缓存
<!DOCTYPE html>
<html manifest="IGNORE.manifest">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
2.路径url后面加参数: xxx.html->xxx.html?123456   xxx.js->xxx.js?12345  xxx.css->xxx.css?12345
3.按钮链接是后端通过获取openId等操作后,从定向到前端的lonin或index页面的时候,在从定向的url后也得加version:login.html -》login.html?12345

转载于:https://www.cnblogs.com/ryans/p/7978869.html

Logo

前往低代码交流专区

更多推荐