第一次启动Fullstackopen,然后获得“ favicon.ico”。在网络选项卡中请求
因此,我基本上是由FullStackopen启动的Web Dev课程,在其中一个步骤中,它说,一旦打开开发人员控制台,然后刷新标签,将出现2个请求(一个HTTP获取请求,另一个请求以从图像中检索服务器,但是每当下一步都会发生这种未知的请求时,我会收到“ favicon.ico”。这没有出现在他们的示例中。是网络选项卡应该显示的
So I basically started this web dev course by fullstackopen and in one of the steps it says that once you open the Developer Console, and refresh the tab, 2 requests shall appear (one HTTP GET request and the another for an image to be retrieved from the server, but whenever I refresh I get this unknown request called "favicon.ico" every time. For the next steps also the same is happening. While the courses explains all the other requests made, it does not even talk about this one because this does not appear in their examples. So I just wanted to know why I am getting this random request. first one is what the network tab should have displayed
second image shows what I get when I follow the instructions of the course
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如Akki提到的那样,这是您在浏览器中的选项卡上看到的图标。就像此页面的stackoverflow图标一样。
您正在获得状态200响应,所以它确实在您的根部找到了
As Akki mentioned, this is the icon you would see on a tab in the browser. Like the StackOverflow icon for this page.
You are getting a status 200 response, so it does find it in your root
现代浏览器将在URL的左侧显示一个图标。它被称为
favicon.ico
,通常是从werfe> werfece.com/favicon.ico
中获取的。浏览到不同站点时,您的浏览器将自动要求。如果您的浏览器收到有效的favicon.ico
文件,它将显示此图标。如果失败,它将不会显示特殊图标。在任何一种情况下,浏览都不会受到影响。
看来项目的根目录中没有favicon,因此
未知请求
Modern browsers will show an icon to the left of the URL. This known as the
favicon.ico
and is typically fetched fromwebsite.com/favicon.ico
. Your browser will automatically request it when browsing to different sites. If your browser receives a validfavicon.ico
file, it will display this icon. If it fails, it will not display a special icon.In either circumstances, browsing is not affected.
It would seem that you don't have a favicon in your root directory of the project thus the
unknown request