什么是使用“v = 747”在/site_media/base.css?v=747结尾处 [英] what is the use of "v=747" at the end of /site_media/base.css?v=747"
本文介绍了什么是使用“v = 747”在/site_media/base.css?v=747结尾处的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到一个网页源代码,其头部包含以下css声明:
< link rel = stylesheethref =/ site_media / base.css?v = 747/>
结尾处使用?v = 747 的CSS声明?
解决方案
绕过浏览器的缓存机制。如果文件被更新,版本(我猜这是 V 代表)将增加,浏览器将不使用缓存,但下载文件,因为它是一个不同的URL。 p>
I have seen a web page source code containing the following css declaration at the header:
<link rel="stylesheet" href="/site_media/base.css?v=747" />
What is the use of "?v=747" at the end of this CSS declaration?
解决方案
To bypass the caching mechanism of the browser. If the file is updated, the version (I guess that's what v stands for) will be incremented and the browser will not use the cache, but download the file, since it is a different URL.
这篇关于什么是使用“v = 747”在/site_media/base.css?v=747结尾处的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文