BeginRequest fires for static files in ASP.NET MVC app

前端 未结 4 1157
庸人自扰
庸人自扰 2021-01-05 23:18

I was under the impression that static files (CSS, images, @font-face files, etc) bypassed ASP.NET completely, and were served directly by IIS.

However, my BeginRe

4条回答
  •  醉梦人生
    2021-01-06 00:14

    BeginRequest will be triggered for all requests (including static content) if:

    • You're using Visual Studio's development web server.
    • You've configured IIS to do so.

    Please take a look at: http://forums.asp.net/t/1220664.aspx

提交回复
热议问题