Use this command to install Microsoft IIS Compression:
winget install --id=Microsoft.IIS.Compression -e
Microsoft IIS Compression is a tool designed to enhance HTTP response efficiency by enabling compression of static files and dynamically generated content in Microsoft Internet Information Services (IIS). The software provides two compression scheme providers: iisbrotli.dll, which supports Brotli compression, and iiszlib.dll, which supports Gzip and Deflate. These modules integrate with IIS's StaticCompressionModule and DynamicCompressionModule to optimize web content delivery.
Key Features:
Support for Brotli, Gzip, and Deflate compression algorithms to reduce response sizes.
Integration with IIS modules for seamless compression of static files and dynamic content.
Improved performance through reduced bandwidth consumption and faster load times.
Audience & Benefit:
Ideal for system administrators and web developers using IIS to optimize website performance. By enabling efficient compression, it reduces data transfer time and enhances user experience while minimizing server resource usage. The tool can be installed via winget for easy deployment.
README
Microsoft IIS Compression
IIS Compression is a bundle of two IIS compression scheme providers iisbrotli.dll and iiszlib.dll that enable IIS to compress HTTP response contents. iisbrotli.dll supports Brotli compression, while iiszlib.dll supports both Gzip and Deflate compression.
An IIS compression scheme provider is a pluggable extension of IIS StaticCompressionModule and DynamicCompressionModule - essentially a dynamic link library (dll) that implements the compression algorithm and exposes the IIS HTTP Compression API. IIS StaticCompressionModule and DynamicCompressionModule load the registered compression scheme providers into worker process at runtime, and leverage them to perform compression for static files and dynamically-generated contents, respectively.
The IIS Compression installer registers iisbrotli.dll as the br (Brotli) compression scheme provider in applicationHost.config. It also replaces the default gzip compression scheme provider gzip.dll with iiszlib.dll. A sample httpCompression section in applicationHost.config is shown below:
Build the code using the build.cmd (the location of msbuild.exe needs to be added into PATH environment variable).
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.