machine.config 預設註冊多個 HttpModule,每個請求皆會經過。若不使用對應功能,可移除減少額外負擔:
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile..." />
</httpModules>
FormsAuthentication、ProfileModule。FormsAuthentication、PassportAuthentication。Cache-Control、Expires,極大降低伺服器壓力。綜合套用可使任何 ASP.NET 2.0 網站顯著提升效能與擴展性。