Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Prevent static files from going through the ASP.NET pipeline

$
0
0

I noticed that the loading of my aspx pages has been taking quite a bit of time and so I decided to debug the global.asax.cs file to see where the bottleneck was occurring. It appears that after my aspx (default.aspx) page hits the Application_AuthenticateRequest event, this event is then called again for every static file reference by the master page being utilized by the aspx page. E.g. request for css, js, and image files are being processed. I confirmed this by checking the HttpRequest.Path and each time after the aspx has been authenticated, these very same files show up in the HttpRequest.Path.

I have tried a solution mentioned in the following link, but I have not been able to rectify this issue.

http://stackoverflow.com/questions/6279643/prevent-iis-from-serving-static-files-through-asp-net-pipeline

Has anyone encountered this issue, and if so, how did you resolve it?


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>