网站图标未正确显示
我的根目录中有一个 favicon.ico。我的链接是这样的:
<link rel="shortcut icon" href="/favicon.ico">
我办公室里的一些人可以看到它,而另一些人则看不到。当我重命名文件和链接路径时,我获得 100% 成功。当我将其改回 favicon.ico 时,有些人可以看到它,有些人则看不到。这是完全不可预测的。
网站图标有什么独特之处会导致它无法正常工作吗?
I have a favicon.ico located in my root. I have linked like this:
<link rel="shortcut icon" href="/favicon.ico">
Some people in my office can see it any some people can't. When I rename the file and the link path I get 100% success. When I change it back to favicon.ico some people see it and some people don't. It is totally unpredictable.
Is there anything unique to favicon's that would make this not work correctly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否在问如何强制图标刷新?
Are you asking how to force a favicon refresh?
根据我的经验,您需要这两个定义。
In my experience you need both of this definitions.
有:
有效吗?
Does:
Work?
我使用默认站点没有任何问题。
相反,我在同一网站上的链接上遇到了问题。
网站图标未显示在链接
上当我尝试在浏览器开发人员中访问网站图标时,它显示了
没有权限。
我更改了服务器上的权限并且它对链接有效。
I had no problem with the default site.
I instead had problems with links on the same site.
The favicon did not show up on links
When I tried to access the favicon in the browser developer it showed
permission denied.
I changed the permissions on the server and it worked on links.