【JavaScript】强制缓存刷新

1.在js引用时加入时间戳。

1 <script>
2 document.write('<script src="xxx.js?_dc='+new Date().getTime()+'"></script>')
3 </script>

2.在服务器端配置js版本号,页面进行读取拼接。

原文地址:https://www.cnblogs.com/zengweiming/p/3806540.html