Click here to Skip to main content
15,902,189 members
Articles / All Topics

Save Some Handlers and Moduling Coding Time to Increase Bandwidth and Performance of your ASP.NET Applications

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
5 Oct 2009CPOL1 min read 6.2K   3  
Save some Handlers and Moduling coding time to increase bandwidth and performance of your ASP.NET applications

Introduction

In this article, I will try to explain a way to enable compression on IIS 6.0, in case you don't want to add page handlers or modules that may compress web sites that are not processed by .NET Framework. And once we enable compression, we will enhance bandwidth performance.

Step One: Enable Compression

To do that, let's go to IIS Manager and by right clicking on the web site, we select properties and head to service and then we need to check both checkboxes (Compress application files, and Compress static files), then press Ok.

Step Two: Enable metabase.xml Edit

To make our compression work properly, we need to make some modification on this file. In order to make these changes, we need direct IIS to give us edit rights, so right click on root of IIS and select properties, then check (Enable Direct Metabase Edit), then press OK.

Step Three: Edit metabase.xml

This file found under the following path "%windir%\system32\inetsrv\", where we are going to add extensions and set compression type. Where we have two compression types g-zip and deflate. Compression level is defined from lowest to highest of range 0 – 10, all of this is defined under attribute HcDynamicCompressionLevel.

The end.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) none
Palestinian Territory (Occupied) Palestinian Territory (Occupied)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --