Application_BeginRequest is called too many times

dev machine handles all file type requests ex: Img,js,css etc ..
skip it if u want
if (HttpContext.Current.Request.Path.ToLowerInvariant().IndexOf(".aspx") > -1)
{
return; // skipin BeginRequest handle
}