65.9K
CodeProject is changing. Read more.
Home

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

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Oct 5, 2009

CPOL

1 min read

viewsIcon

6230

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.