Configuring compression in IIS 7

In this section, we'll see how to use compression in IIS 7. If you use IIS 6, skip to the Configuring compression in IIS 6 section.

Switching on compression in IIS 7 by itself is fairly easy. However, the moment you try to use some of the more advanced features, you find yourself using the command prompt or modifying a configuration file.

Here, we'll first switch on compression, and then get into those more advanced features.

Installing the dynamic content compression module

If you want to use compression for dynamic files, first install the dynamic content compression module. The steps to do this are different depending on whether you use Vista/Windows 7 or Windows Server 2008.

On Windows Server 2008:

  1. Click Start ...

Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.