Click here to Skip to main content
Click here to Skip to main content

Enable Gzip compression in IIS 6.0 for ASP.NET 2.0 websites

, 19 Nov 2008
Rate this:
Please Sign up or sign in to vote.
How to enable Gzip compression in IIS6.0 for ASP.NET 2.0 websites.

Introduction

This step by step guide will show you how to enable Gzip compression to work with ASP.NET 2.0. Compressing the output should make your websites faster, especially when being viewed via a slow connection.

Step 1: Enable Compression Using the IIS Manager

Expand IIS Manager. Right click on Websites. Click Properties. Click the Service tab. Check the boxes to enable compression.

Step 2: Install IIS 6.0 Resource Kit Tools

You can download the free tool from Microsoft here.

Step 3: Edit IIS Meta Database

Open the IIS Metabase Explorer. It is part of the resource kit you just installed. Expand LM>W3SVC>Filters>Compression. You will need to edit both gzip and deflate. Find the item with the name HcScriptFileExtensions. Add the values aspx, axd, asmx, and css. Repeat process for gzip and deflate. Find HcDynamicCompressionLevel and set it to something higher than 0.

Step 3: Do IISReset

That's it. To verify that you have everything working correctly, you can use the free tool YSlow for Fire Bug.

License

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

Share

About the Author

ToddHileHoffer
Web Developer
United States United States
Life.

Comments and Discussions

 
GeneralDid not work for me. Pinmembermelihkemal11-Dec-09 3:57 
GeneralRe: Did not work for me. PinmemberToddHileHoffer11-Dec-09 4:05 
GeneralRe: Did not work for me. Pinmembermelihkemal11-Dec-09 4:53 
GeneralRe: Did not work for me. PinmemberToddHileHoffer11-Dec-09 4:10 
GeneralRe: Did not work for me. Pinmembermelihkemal11-Dec-09 4:56 
GeneralRe: Did not work for me. PinmemberToddHileHoffer11-Dec-09 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 19 Nov 2008
Article Copyright 2008 by ToddHileHoffer
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid