English

How To: Enable Dynamic Content Compression in IIS 6

Summary

Business Analyst Server’s Web services responses can be compressed at the server side to significantly reduce the size of the response payload. In certain cases, a data compression ratio of 7-to-1 or better may be obtained. This compression can significantly increase the speed of the data transmission which could increase the apparent performance and responsiveness of any client application consuming the services.

Procedure

This article provides instructions for enabling compression in Microsoft IIS 6, starting with installation of the Dynamic Content Compression feature.

  1. Open the Computer Management console by going to Start > All Programs > Administrative Tools > Computer Management.
  2. In the Computer Management tree menu, expand Computer Management > Services and Applications > Internet Information Services (IIS) Manager. Right-click the Web Sites folder and click 'Properties'.
  3. In the Web Sites Properties dialog, click the Service tab and select 'Compress application files' and 'Compress static files' in the HTTP compression section. Leave everything else at default settings and click OK.
  4. In the Computer Management console, right-click Internet Information Services (IIS) Manager and click 'Properties'.
  5. In the Internet Information Services (IIS) Manager Properties dialog, select 'Enable Direct Metabase Edit' and click OK.
  6. Restart IIS by opening the Run dialog and typing 'iisreset' (without quotes). Click OK to execute this command.
  7. Download and follow the instructions to install the IIS 6.0 Resource Kit Tools from Microsoft. These tools will supplement the existing IIS 6.0 tools.

    Internet Information Services (IIS) 6.0 Resource Kit Tools
  8. After installing the tools, open the Metabase Explorer dialog by choosing Start > All Programs > IIS Resources > Metabase Explorer > Metabase Explorer.
  9. In the Metabase Explorer, expand the local host > LM > W3SVC > Filters > Compression.
  10. Under Compression, select 'deflate'. In the details pane, double-click on the property 'HcDynamicCompressionLevel' to edit the value.
  11. In the HCDynamicCompressionLevel Properties dialog, set the Value to 9 and click OK to save.
  12. Double-click the property 'HcScriptFileExtensions' under the 'deflate' node.
  13. In the HcScriptFileExtensions Properties dialog, remove all the values listed by clicking on each one to select it and then pressing the Delete key on your keyboard. Click OK. This step effectively makes every file type (MIME) served by IIS on the Web server as gzip compression compatible.
  14. Under the Compression node in the tree view, select 'gzip'.
  15. Double-click the property named: 'HcDynamicCompressionLevel' to edit the property.
  16. In the HcDynamicCompressionLevel Properties dialog, set the Value to 9 and click OK to save.
  17. Double-click the property 'HcScriptFileExtensions' under the gzip node.
  18. In the HcScriptFileExtensions Properties dialog, remove all the values listed by clicking on each one to select it and then pressing the Delete key on your keyboard. Click OK. This step will effectively make every file type (MIME) served by IIS on the Web server as gzip compression compatible.
  19. Close the IIS Metabase Explorer console.
  20. Restart IIS by opening the Run dialog and typing 'iisreset' without quotes. Click OK to execute this command.