IIS 7 compression not working

Joseph Ghassan picture Joseph Ghassan · Sep 18, 2010 · Viewed 9.8k times · Source

I have a Windows server 2008 R2 with IIS 7.

By default when you create a site in IIS, Compression is enabled. I checked the Compression module and both Checkboxes are checked.

Now, I am using fiddler to check if pages are being compressed but it seems they are not as the No Compression is selected and the page size is over 100 KB.

Why pages are Not compressing even though Compression is enabled in IIS 7 ?

Any suggestions will be highly appreciated.

Thanks.

Answer

Jorge Poveda picture Jorge Poveda · Apr 27, 2011

Are your pages' content dynamic (i.e. .aspx or .php)? If so, does your IIS have the dynamic content compression module installed? You can tell by looking at the "Enable dynamic content compression" checkbox. If it is grayed out, then it is not installed.

To install it, please refer to the following link:

Enabling Dynamic HTTP Compression in IIS7 on Windows Server 2008

Essentially, it says (with lots of pictures) that you must add the Dynamic Content Compression role service through Server Manager, and then ensure that it is enabled in IIS Manager.