通过设置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" />
通过script引入的js文件
<script type="text/javascript">
const now = new Date().getTime();
document.write(
`<script src="../js/cookie.js?t=${now}"><\/script>`
);