GZip compression can be enabled directly through IIS.
First open IIS,
Go to the website on which you are hoping to configure and click on the Compression page. If Gzip is not installed, you will see something like the following:

"Dynamic content compression module not installed." We have to fix it. Therefore, we go to "Enable or Disable Windows Features" and select "Dynamic Content Compression" and click "OK."
Now, if we go back to IIS, we will see that the compression page has changed. At this point, we need to make sure the dynamic compression check box is checked, and it was good to go. Compression is enabled and our dynamic content will be gzipped.
Testing - check if gzip compression is enabled
To check if compression works, use the developer tools in Chrome or Firebug for Firefox and make sure that the HTTP response header is configured:
Content-Encoding: gzip
Ryan Jan 24 '16 at 11:16 2016-01-24 11:16
source share