
1 happyeveryday Aug 20, 2021 一般资源通过打 hash 能避免缓存,不过遇到过 index.html 被缓存了就比较麻烦 |
2 eason1874 Aug 20, 2021 网页禁止缓存,静态文件资源路径加上版本号或者 hash,就 OK 了 |
3 lynan Aug 20, 2021 <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" /> |
4 shakaraka PRO 一般不缓存 index.html,依赖 css 、js 加 hash |
5 NewYear Aug 20, 2021 我们内部系统,魔改了 JS 文件,结果看到很多同事的界面,接近半年了还是用的缓存 JS 文件,吐血。 |
7 jarl Aug 20, 2021 js?version=时间戳 css?version=时间戳 |