Trimming HTTP pipeline

Some of the ASP.NET features are supported by HTTP modules. These modules are in the pipeline of each request whether you use them or not. It makes sense to remove those modules that you don't need, to remove their overhead.

In the ListHttpModules folder in the downloaded code bundle, a simple website is present that lists all the modules currently in the pipeline and their types. When you've identified a module you don't need, remove it in web.config, as shown in the following:

<system.web>
<httpModules>
<remove name="RoleManager" />
</httpModules>
</system.web>

Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.