II7 및 Windows 2008 Server에서 실행되는 ASP.NET MVC 1.0 응용 프로그램 (.NET 3.5)이 있습니다. 응용 프로그램이 '통합 파이프 라인'모드로 배포됩니다. IIS 7에서 ASP.NET MVC의 정적 내용
는 Global.asax.cs 나는 추가 :public void Application_EndRequest(Object sender, EventArgs e) {
//print URL
}
방법은 호출되는 경우에도 정적 콘텐츠에 대한 (이미지, CSS, JS)/콘텐츠 및/스크립트 폴더입니다. 이 정보가 맞습니까?
MSDN (http://msdn.microsoft.com/en-us/library/bb470252.aspx)는 말한다 :
"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. "
그래서의 Application_EndRequest()는 정적 콘텐츠를 호출 할 필요가?
브라우저가 정적 컨텐츠를 캐싱하는 방법을 보장하려면 어떻게해야합니까?
감사합니다.
감사합니다. 그러나 Steve Sanderson 블로그는 IIS6에 관한 것입니다. – dev