我需要在我的网站上放置一个收藏夹图标吗?如何摆脱我在apache日志中看到的错误? [英] Do I need to have a favicon on my site? How do I get rid of the errors I see in my apache log?

查看:48
本文介绍了我需要在我的网站上放置一个收藏夹图标吗?如何摆脱我在apache日志中看到的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的apache日志中继续看到favicon警告.我该如何摆脱这些?我的网站上必须有一个网站图标吗?

I keep seeing favicon warnings in my apache log. How do I get rid of those? Do I have to have a favicon for my site?

推荐答案

/favicon.ico是浏览器黑暗时代"(cca 2000)的工件之一.虽然无法阻止浏览器请求,但创建一个名为favicon.ico的0字节文件会终止404错误(由于该文件存在)的流,但是您网站的浏览器将不会显示任何favicon.

/favicon.ico is one of the artifacts of the Browser Dark Ages (cca 2000). While there is no way to prevent the browser requests, creating a 0-byte file named favicon.ico ends the flow of 404 errors (as the file exists), but no favicon will be shown by the browsers for your site.

这篇关于我需要在我的网站上放置一个收藏夹图标吗?如何摆脱我在apache日志中看到的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆