Microsoft IIS 10.0 – Configuring static content compression

How to Use the Date Command in Ubuntu

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 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…

  1. Log in to Windows Server 2016 with an administrator account.
  2. Open Server Manager.



  1. Click on the Tools menu from Server Manager, and you will find IIS Manager. Open IIS Manager and click on WIN2016IIS. Go to Features View and select Compression, as shown here:
  1. Now open the Compression file, and you will get the configuration options for Compression, as shown here:
  1. 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 compression on. You’ll see that we have enabled static content compression, which will compress files larger than 2700 (in bytes). The Cache directory location is where temporary files can be compressed or decompressed. The Per application pool disk space limit is 100 MB.



  1. You can see in the figure that I have highlighted the Alerts section. If you use dynamic compression, it will use more server resources, which might slow down the server.
  2. Let’s see how to enable and disable compression on the website.
  3. Expand the IIS server WIN2016IIS, expand the Sites folder, click on, go to the Features View of, and select Compression, as shown here:
  1. Open the Compression option, and you will get the enable and disable window, as shown here:
  1. We have the Enable checkbox ticked so that compression is enabled. If we uncheck the dynamic content compression or static content compression checkboxes, they will be disabled when you click on the Apply button in the CompressionActions pane.
IIS routine to maintain at next level of the IIS Server performance of your web application considerably.

  1. Application Pool Suspension through advance property.
  2. Make your page asynchronous if application support.
  3. Don’t write in wwwroot.
  4. Remove unused view engines and language.
  5. Pipeline mode.
  6. Remove unused modules.
  7. runAllManagedModulesForAllRequests.
  8. Kernel mode Cache.
  9. Remove methods from Glabal.asax.
  10. Don’t use SqlDataSource.
  11. Use HTTP Keep Alive.
  12. Remove ETag Generally, people ignored these tips but they have enormous performance enhancement potential and can be applied quickly on IIS Server to boost in a health prospect.

How it works…

In this recipe, we logged in to IIS Server and opened IIS Manager. We opened the features view of IIS Server WIN2016IIS to configure content compression. We opened the Features View of to enable and disable static and dynamic content compression.

Comments are closed.