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

后端 未结 4 2096
面向向阳花
面向向阳花 2021-02-13 17:54

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.

<
4条回答
  •  情歌与酒
    2021-02-13 18:36

    Some browsers just look for favicon.ico in the root of your website by default.
    I think the easiest way to stop the browser looking for this file is provide the image once, then the browser will cache it and stop asking.

提交回复
热议问题