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

后端 未结 12 1398
死守一世寂寞
死守一世寂寞 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条回答
  •  -上瘾入骨i
    2020-12-16 14:45

    You should set the Expires header to tell the browser how long it should use its local copy.

提交回复
热议问题