Click here to Skip to main content
6,291,722 members and growing! (14,953 online)
Email Password   helpLost your password?
Web Development » ASP.NET » Howto     Intermediate License: The Code Project Open License (CPOL)

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

By ToddHileHoffer

How to enable Gzip compression in IIS6.0 for ASP.NET 2.0 websites.
ASP.NET, WebForms, Architect, Dev, SysAdmin
Posted:19 Nov 2008
Views:8,907
Bookmarked:14 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
9 votes for this article.
Popularity: 3.65 Rating: 3.82 out of 5
2 votes, 22.2%
1

2

3
4 votes, 44.4%
4
3 votes, 33.3%
5

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)

About the Author

ToddHileHoffer


Member
Life.
Occupation: Web Developer
Location: United States United States

Other popular ASP.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 10 of 10 (Total in Forum: 10) (Refresh)FirstPrevNext
GeneralAny reason why compression may not work? PinmemberMember 33745559:27 7 May '09  
GeneralIIS is Gzipping all files including GIF PinmemberJRev5:01 9 Jan '09  
GeneralRe: IIS is Gzipping all files including GIF PinmemberClaus Conrad11:11 30 Jan '09  
GeneralRe: IIS is Gzipping all files including GIF PinmemberJRev8:42 3 Feb '09  
QuestionYSlow Pinmemberamrelgarhy819:44 19 Nov '08  
AnswerRe: YSlow PinmemberToddHileHoffer12:56 19 Nov '08  
QuestionRe: YSlow Pinmemberamrelgarhy8122:42 19 Nov '08  
AnswerRe: YSlow PinmemberToddHileHoffer3:11 20 Nov '08  
QuestionNo Service tab PinmemberAndre Luiz V Sanches7:07 19 Nov '08  
AnswerRe: No Service tab PinmemberToddHileHoffer7:15 19 Nov '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 19 Nov 2008
Editor: Smitha Vijayan
Copyright 2008 by ToddHileHoffer
Everything else Copyright © CodeProject, 1999-2009
Web11 | Advertise on the Code Project