Favicon不会更新 [英] Favicon doesnt update
本文介绍了Favicon不会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将一个新的图标复制到服务器上,但是旧的图标出现了.即使在页面的顶部调用了另一个,也可以优先吗?
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
图像是页面的同级.
解决方案
我总是发现浏览器会相当积极地缓存网站图标,因此请先进行检查.
其次,不同的浏览器寻找图标图标的方式略有不同.在下面的底部进行解释: http://en.wikipedia.org/wiki/Favicon >
只要您在网站根目录中拥有favicon,就可以使大多数人满意.
I copied a new favicon to the server , but the old one shows up. Could another one have precedence even though this one is called in the head of the page?
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
The image is a sibling of the page.
解决方案
I always find browsers cache favicons fairly aggressively, so check this first.
Secondly, different browsers look for a favicon slightly differently. Explained at the bottom here: http://en.wikipedia.org/wiki/Favicon
Providing you have the favicon in your web root, you'll keep the majority happy.
这篇关于Favicon不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文