Asp.net Mvc: why is browser looking for favicon.ico

asp.net, asp.net-mvc, asp.net-mvc-4, c#

Solution

favicon.ico is a convention - but is one way that the browser can get the image for links, tabs, etc:

Note that these days, the image location can also be set in metadata (which is handy as it allows the image to be per-page rather than per-domain, and/or allows for serving it from a different location, such as a CDN):

<link rel="shortcut icon" href="//cdn.sstatic.net/stackoverflow/img/favicon.ico">
<link rel="apple-touch-icon image_src" href="//cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">

However, "/favicon.ico" is the fallback, and is used by many old browsers - or where no explicit shortcut icon is specified.

Basically: go create one.

Problem

I know there is a solution to stop the mvc framework to process "favicon.ico" requests (solution), but i don't know why is it looking for this icon in the first place. I searched using Find in Files > Entire Solution for `favicon.ico` and nothing was found. I searched in the html source code of the website for `favicon.ico` and nothing was found. Where is it? why the browser is trying to serve it?

Original source

Related problems