Enable IIS web server static compression - HxGN SDx - Update 50 - Installation & Upgrade - Hexagon

3D Project As-Built Installation and Setup for HxGN SDx

Language
English
Product
HxGN SDx
Search by Category
Installation & Upgrade
SmartPlant Foundation / SDx Version
10

The Windows Internet Information Services (IIS) Manager caches compressed static content in the path that is specified by the directory attribute. This caching improves compression performance by eliminating the need to recompress content. After IIS has compressed a file, subsequent requests receive the compressed copy of the file from the cache folder.

Image files such as *.jpg and *.png files are also static files, but typically they do not benefit from HTTP compression because these image files are already compressed.

The steps below provide basic information for enabling and disabling static compression. See the documentation for your specific IIS Manager for details.

Enable static compression for a site or application

  1. Open the Internet Information Services (IIS) Manager.

  2. In the Connections pane, go to the connection, site, application, or folder to enable compression.

  3. In the Home pane, double-click Compression, and then check Enable static content compression.

  4. Click Apply in the Actions pane.

  5. Open the IIS Configuration Editor and perform the following in the specified sections:

    Section system.webServer/serverRuntime:

    • Click the Unlock section.

    • Change frequentHitThreshold from 2 to 1.

    • Change frequentHitTimePeriod from 00:00:10 to 10000.00:00:00.

      Section system.webServer/httpCompression:

    • Increase the maxDiskSpaceUsage as the default value of 100 MB is too small. We recommend 10 GB or more, if possible. If you continue to use the default (100 MB), the server must constantly recompress files.

    • Change staticCompressionIgnoreHitFrequency from False to True.

    • Edit the staticTypes, and then add application/octet-stream and application/wasm.

    • Change sendCacheHeaders from False to True.

  6. The same configuration can be set directly in the root web.config:

    When Static compression is enabled, you can see Content-Encoding: gzip in the Response Headers whenever the application requests data on the static compression-enabled server.

    The transferred data is also reduced for static compression.