HTTP Pipeline - Performance

Finishing reading the Luis Abreu´s book, in last chapter he speaks about the page life-cycle and I remembered of performance detail that we can use in ASP.NET applications around HttpModules and I implemented it in Projetando.NET website.

In machine.config file there is a section called httpModules where we have several modules that, for default, are related and will be performed during request; here is some examples: OutputCache, Session, FormsAuthentication, etc. But, in some applications, these modules aren't used and, in this case, we can remove them of the application through the following Web.Config configuration:

<httpModules>
    <remove name="Session" />
    <remove name="WindowsAuthentication" />
    <remove name="FormsAuthentication" />
    <remove name="PassportAuthentication" />
    <remove name="UrlAuthorization" />
    <remove name="FileAuthorization" />
</httpModules>

Comments

# re: HTTP Pipeline - Performance

Wednesday, November 22, 2006 10:37 AM by v

very interesting, there is httpmodules section in 1.1 machine.config, but I'm it is not in the 2.0. Could you point to where this trick could be implemented in 2.0?

# re: HTTP Pipeline - Performance

Wednesday, November 22, 2006 11:10 AM by israel aece

Hi,

In ASP.NET/.NET 2.0 there is a Web.Config file in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\ path where you can view the default httpModules.