In my Application_Start
I have a call to a RegisterRoutes method that I call the following:
// Do not process any static files
routes.IgnoreRoute(
"{*staticfile}", new { staticfile = @".*\.(jpg|gif|jpeg|png|js|css|htm|html|htc)$" }
);
Additionally, I have MiniProfiler configured which I run like so:
protected void Application_BeginRequest()
{
MiniProfiler.Start();
var profiler = MiniProfiler.Current;
using (profiler.Step("Application_BeginRequest"))
{
}
}
Now when I launch my website, I am seeing images being profiled:
Which to me seems to state that my IgnoreRoute is not working properly, or the Image should have never made it up to the MiniProfiler state. Am I incorrect in this, or am I doing something wrong?