Microsoft Knowledge Base Email Alertz

Microsoft Internet Information Services (IIS) version 5.0 now supports HTTP compression as defined in the HTTP specification. By default, HTTP compression only compresses files with a file name extension of "htm," "html," and "txt." This

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 234497 - Last Review: December 3, 2007 - Revision: 5.3

How to specify additional document types for HTTP compression

This article was previously published under Q234497

On This Page

SUMMARY

Microsoft Internet Information Services (IIS) versions 5.0 and later support HTTP compression as defined in the HTTP specification. By default, HTTP compression only compresses files with a file name extension of "htm," "html," and "txt." This article explains how to specify additional document types for compression.

Note The first Microsoft Exchange Server version that natively supports HTTP compression is Exchange Server 2003. For additional information how to enable HTTP compression in Exchange Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:
830827  (http://kbalertz.com/Feedback.aspx?kbNumber=830827/ ) How to manage Outlook Web Access features in Exchange Server 2003

Add New Document Types

To add the document types for Microsoft Word, Microsoft PowerPoint, and Microsoft Excel to the default list of documents and restart the IIS services, follow these steps:

NOTE: The commands in step 3 replace the previously defined file extensions. It does not append them to the existing file extensions.
  1. Open a command prompt session. To do this, click Start, click Run, type CMD, and the click OK.
  2. Change the directory to your \InetPub\AdminScripts folder. To do this, type CD \Inetpub\AdminScripts, and then press ENTER.
  3. Type the following commands:
    CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "doc" "ppt" "xls"
    
    CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "doc" "ppt" "xls"
    
    IISRESET.EXE  (this will reset Web services)
    					
  4. Close the command prompt session.

REFERENCES

For more information about compression formats, visit the following Web sites:
RFC 1945 (Hypertext Transfer Protocol -- HTTP/1.0)
ftp://ftp.isi.edu/in-notes/rfc1945.txt (ftp://ftp.isi.edu/in-notes/rfc1945.txt)

RFC 1951 (DEFLATE Compressed Data Format Specification version 1.3)
ftp://ftp.isi.edu/in-notes/rfc1951.txt (ftp://ftp.isi.edu/in-notes/rfc1951.txt)

RFC 1952 (GZIP file format specification version 4.3)
ftp://ftp.isi.edu/in-notes/rfc1952.txt (ftp://ftp.isi.edu/in-notes/rfc1952.txt)

RFC 2616 (Hypertext Transfer Protocol -- HTTP/1.1)
ftp://ftp.isi.edu/in-notes/rfc2616.txt (ftp://ftp.isi.edu/in-notes/rfc2616.txt)

APPLIES TO
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 6.0
Keywords: 
kbhowto KB234497
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate