在html头部添加以下meta
<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">
通过以上添加,可以用html语法禁用浏览器缓存,各编程语言使用对应的函数或者方法体现这样的语法就可以了。
例如php:
header("Cache-control:no-cache,no-store,must-revalidate");
header("Pragma:no-cache");
header("Expires:0");