Why is Chrome searching for my favicon.ico when I serve up a file from ASP.NET MVC?

后端 未结 12 1401
死守一世寂寞
死守一世寂寞 2020-12-16 14:32

I have a controller in MVC serving up images from a database.

EDIT: This still happens if I serve up a file over completely standard means in MVC.

Eve

12条回答
  •  一整个雨季
    2020-12-16 14:47

    It appears for me that Chrome requests a favicon for its own tabs - I kept getting 404s (because my favicon is somwhere else and my pages know it) till I did some tests and realized it was Chrome making direct requests to the favicon file. No real fix except making a rewrite to the real file I guess

提交回复
热议问题