Configuring static content compression
In this recipe, we will log in to IIS Server. In IIS Manager, we will open the Features View
of IIS Server WIN2016IIS to configure content compression. We will open the features view of mysite.com
to enable or disable and dynamic content compression.
Getting ready
In this recipe, we require an up-and-running IIS 10.0 instance. The Compression component should be installed. You should have administrative privileges.
How to do it...
- Log in to Windows Server 2016 with an administrator account.
- Open Server Manager.
- Click on the
Tools
menu from Server Manager, and you will find IIS Manager. Open IIS Manager and click onWIN2016IIS
. Go toFeatures View
and selectCompression
, as shown here:

- Now open the
Compression
file, and you will get the configuration options forCompression
, as shown here:

- As you can see in the figure, we have some default settings. These settings are applicable on IIS Server. After setting them, you have to enable the website you want to apply...