How to Specify Additional Document Types for HTTP Compression

ID: Q234497


The information in this article applies to:
  • Microsoft Internet Information Services version 5.0


SUMMARY

Microsoft Internet Information Services (IIS) version 5.0 now supports HTTP Compression as defined in the HTTP specification. By default, HTTP Compression will only compress files with an extension of "htm," "html," and "txt." This article explains how to specify additional document types for compression.


MORE INFORMATION

Use the following steps to add the document types for Microsoft Word, Microsoft PowerPoint, and Microsoft Excel to the default list of documents and restart the IIS services. 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.


  2. Change the directory to your \InetPub\AdminScripts folder.


  3. Enter 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 


  4. Close the Command Prompt session.


Additional query words: iis

Keywords :
Version : winnt:5.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: January 17, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.