The Artima Developer Community
Sponsored Link

.NET Buzz Forum
How To: HTTP Compression in IIS 6.0

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sudhakar Sadasivuni

Posts: 418
Nickname: sadasivuni
Registered: Nov, 2003

Sudhakar Sadasivuni is a Microsoft .NET MVP, a project engineer for Wipro technologies.
How To: HTTP Compression in IIS 6.0 Posted: Dec 10, 2003 1:03 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sudhakar Sadasivuni.
Original Post: How To: HTTP Compression in IIS 6.0
Feed Title: {Sudhakar's .NET Dump Yard;}
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/ssadasivuni/rss.aspx
Feed Description: using Sudhakar.Dotnet.Blog.Main;
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sudhakar Sadasivuni
Latest Posts From {Sudhakar's .NET Dump Yard;}

Advertisement

How To: HTTP Compression in IIS 6.0
Source: The .NET Guy’s Web log

1. Allow the compression ISAPI to run

IIS 6's new security system prohibits ISAPI DLLs from running by default, so you need to tell IIS 6 that it's okay to let the compression ISAPI DLL run.

01. Open the IIS admin tool (inetmgr); drill into your server, and right-click on "Web Service Extensions".

02. Choose "Add a new web service extension". For the extension name, use whatever you want to identify it in the list (I used "HTTP Compression Extension").

03. You need to add a single required file, which is \Windows\System32\inetsrv\gzip.dll, the ISAPI responsible for doing gzip and deflate compression.

04. Check the "Set extension status to allowed", then click OK.

05. You should have a new web service extension in your list called "HTTP Compression" (or whatever you named it), and it should have a status of "Allowed".

2. Select compressible content

IIS 6's compression system only compresses a very limited set of content. You need to enable compression for the appropriate file extensions (specifically, .aspx files for your ASP.NET pages, and perhaps any static content you want compressed as well).

01.   You're going to edit the Metabase. To do this, you first need to shut down IIS.

02.   In the IIS admin tool, right click on your server name in the left panel, and choose All Tasks -> Restart IIS.

03.   On the restart dialog, choose "Stop internet services" and click OK. When IIS is shut down, you'll need to edit \Windows\System32\inetsrv\MetaBase.xml (make a backup first!).

04.   Search for "IIsCompressionScheme". There will be two XML elements, one for deflate and one for gzip. Both elements have properties called HcFileExtensions and HcScriptFileExtensions. These contain a space-delimited list of file extension for compressible content.

05.   At a bare minimum, you'll need to add “aspx”, “ascx” to the HcScriptFileExtensions list. Note that if the properties are left blank, then all content, regardless of file extension, will be compressed.

Note:

1.      Make sure that IIS process user account has required privileges on the compression temp folder.
2.     
Do never try to compress image types (jpg, gif, png, tiff etc…)

Read: How To: HTTP Compression in IIS 6.0

Topic: Microsoft Project Aura Previous Topic   Next Topic Topic: Transparent Gifs with GDI+ / System.Drawing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use