1.HTML文件需设置不保存缓存
<meta http-equiv="pragram" content="no-cache" />
<meta
http-equiv="cache-control"
content="no-cache, no-store, must-revalidate"
/>
<meta http-equiv="expires" content="0">
no-cache 可以在本地缓存,可以在代理服务器缓存,但是这个缓存要服务器验证才可以使用
no-store 彻底得禁用缓冲,本地和代理服务器都不缓冲,每次都从服务器获取,更多meta标签中的http-equiv属性,参见meta标签中的http-equiv属性
2.配置webpack的打包输出文件名(vue.config.js,默认没有,需要手动添加)
const Timestamp = new Date(