为什么添加随机的GET参数会使网站图标显示? [英] Why does adding a random GET parameter make favicon show?
问题描述
我试图将favicon添加到正在工作的站点,但是由于某些原因,浏览器甚至没有按要求发送favicon,因为我的服务器没有响应.然后我找到了解决我问题的相同问题-
I attempted adding a favicon to a site im working on, but for some reason the brower wasn't even requesting the favicon as it should, since i was getting no response from my server. I then found this identical question that solved my problem - What are the reasons that a browser would not request favicon.ico?
我的一个问题是-如何添加此查询 v = 1.0
来解决此问题?
My one questions is - How in the sweet hell dose adding this query v=1.0
fix the issue?
推荐答案
是?v = 1.0
还是?v = 1000
都没关系.
当添加浏览器从未见过的GET参数时,它将强制清除缓存.在添加收藏夹图标之前,浏览器可能会缓存该网站.
When you add a GET parameter that the browser has never seen before, it forces the cache to clear. The browser probably cached the site before you added the favicon.
这篇关于为什么添加随机的GET参数会使网站图标显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!