【发布时间】:2013-04-15 23:46:51
【问题描述】:
我正在阅读这个源代码:
https://github.com/leobalter/PimpMyCode/blob/master/index.html#L20
<script src="js/compiled.min.js?v=125" async></script>
如果您删除整行代码镜像部分将消失。但是您可以将数字更改为您想要的任何数字,并且文本框将保留。
像?v=125 这样的查询在做什么?
我从未见过有人使用它。
【问题讨论】:
-
您可能还看到文件名本身被修改为唯一值,例如
js/compiled.min.v125.js。
标签: javascript html http caching