I have ASP.NET MVC 1.0 application (.NET 3.5) running on II7 and Windows 2008 Server. The application is deployed in 'Integrated Pipeline' mode.
In Global.asax.cs I added:
public void Application_EndRequest(Object sender, EventArgs e) {
//print URL
}
The method is being called even for static content (images,css,js) in /Content and /Scripts folders. Is this correct ?
MSDN (http://msdn.microsoft.com/en-us/library/bb470252.aspx) says:
"The Execute handler stage, where the handler (a module scoped to a URL) is invoked to construct the response. For .aspx files, the PageHandlerFactory handler is used to respond to the request.
For static files, the native-code StaticFileModule module responds to the request. "
So should Application_EndRequest() be called for static content ?
How to ensure browser is caching static content ?
Thank You.