Click here to Skip to main content
5,785,816 members and growing! (19,031 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
Updated: 19 Nov 2008
Views: 3,303
Bookmarked: 12 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
8 votes for this Article.
Popularity: 3.44 Rating: 3.81 out of 5
2 votes, 25.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
3 votes, 37.5%
4
3 votes, 37.5%
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


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

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 6 of 6 (Total in Forum: 6) (Refresh)FirstPrevNext
QuestionYSlowmemberamrelgarhy819:44 19 Nov '08  
AnswerRe: YSlowmemberToddHileHoffer12:56 19 Nov '08  
QuestionRe: YSlowmemberamrelgarhy8122:42 19 Nov '08  
AnswerRe: YSlowmemberToddHileHoffer3:11 20 Nov '08  
QuestionNo Service tabmemberAndre Luiz V Sanches7:07 19 Nov '08  
AnswerRe: No Service tabmemberToddHileHoffer7: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
Web12 | Advertise on the Code Project