Optimizing Internet Information Services (IIS) performance using compression and cache

Overview

TopTeam Web downloads application files (JavaScript, images, CSS, etc.) from the web server. These files must be cached by browser for optimal performance.

This article explains how to configure cache control response headers on Internet Information Services (IIS) to enable caching on browser.

Who should read this?

  • TopTeam Administrators
  • TopTeam IT Support

Step 1. Open IIS Manager from Windows Start Menu

wpid29935-media_1461067256439.png

 

Step 2. Open HTTP Response Headers

wpid29936-media_1461067402699.png

 

Step 3. Clean up existing HTTP Response Headers

wpid29933-media_1461302048096.png

 

wpid29934-L_F8C0.tmp_.png

After you have removed Cache-Control and Expires headers, please follow these steps:

Step 4. Add HTTP Response Headers

wpid29937-media_1461067567011.png

 

Step 5. Add header – Cache-Control

wpid29938-media_1461218285523.png

Specify the values for:
Name: Cache-Control
Value: private,max-age=2592000

NOTE:

  • The value of the “max-age” directive must be in seconds. Recommended value is 2592000 i.e. the number of seconds in 30 days.The value must always be specified only in terms of seconds for the number of days.

Output

wpid29941-L_C8D3.tmp_.png

 

Step 6. Enable Content Compression

wpid29939-media_1461821907348.png

 

wpid29940-media_1461822133244.png

NOTE:
1. If “Enable dynamic content compression” option is disabled, it indicates that this feature is not installed on IIS Manager. In that case, go to “Turn Windows features ON or OFF” section of Windows Control Panel and turn ON the Dynamic Content Compression of IIS.
2. Uncheck “Enable static content compression” option for Windows 2012 Operating System or higher.

Step 7. Restart IIS and clear browser cache

Revised: January 31st, 2018