Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行以下设置:haproxy -> web traffic -> varnish -> nginx(提供静态资产)-> node.js(动态内容)和 haproxy -> websockets -> node.js
如何在代码部署后强制浏览器刷新静态资产(JavaScript、CSS、..)?(过期/清除缓存?)
您可以使用修订号将查询字符串添加到文件中。增加修订号将强制所有资产返回到浏览器。
<script type="text/javascript" src="jquery.min.js?r=223"></script>