Here’s another tip to optimize websites developed in ASP.NET: since Framework 2.0, Microsoft offers to configure a Deployment tag to include in Machine.config file. This setting has two effects: Restore the optimal performance of ASP. NET (Compilation, AXD cache resources, memory management, timeouts pages) that were reduced by the debug mode. And disable debugging, the ASP.NET trace and error messages to complete ASP.NET (whatever settings in Web.config). More information on MSDN web site.