第一次启动Fullstackopen,然后获得“ favicon.ico”。在网络选项卡中请求

发布于 2025-01-28 13:57:56 字数 297 浏览 6 评论 0原文

因此,我基本上是由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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

衣神在巴黎 2025-02-04 13:57:56

正如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

失去的东西太少 2025-02-04 13:57:56

现代浏览器将在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 from website.com/favicon.ico. Your browser will automatically request it when browsing to different sites. If your browser receives a valid favicon.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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文