{"id":24196,"date":"2016-04-21T05:37:42","date_gmt":"2016-04-21T12:37:42","guid":{"rendered":"http:\/\/www.technosolutions.com\/kb\/24196\/how-to-configure-iis-for-enabling-caching-of-files-on-browser\/"},"modified":"2018-01-31T21:12:17","modified_gmt":"2018-02-01T05:12:17","slug":"optimizing-internet-information-services-iis-performance-using-compression-and-cache","status":"publish","type":"post","link":"http:\/\/www.technosolutions.com\/kb\/24196\/optimizing-internet-information-services-iis-performance-using-compression-and-cache\/","title":{"rendered":"Optimizing Internet Information Services (IIS) performance using compression and cache"},"content":{"rendered":"<p>\t\t\t\t<!-- Start ScreenSteps Content --><\/p>\n<div class=\"LessonContent\">\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Overview<\/h3>\n<div class=\"StepInstructions\">\n<p><i>TopTeam Web <\/i>downloads application files (JavaScript, images, CSS, etc.) from the web server. These files must be cached by browser for optimal performance.<\/p>\n<p>This article explains how to configure cache control response headers on <i>Internet Information Services (IIS)<\/i> to enable caching on browser.  <\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Who should read this?<\/h3>\n<div class=\"StepInstructions\">\n<ul>\n<li>TopTeam Administrators<\/li>\n<li>TopTeam IT Support<\/li>\n<\/ul>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 1. Open IIS Manager from Windows Start Menu<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29935-media_1461067256439.png\" width=\"411\" height=\"398\" alt=\"wpid29935-media_1461067256439.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 2. Open HTTP Response Headers<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29936-media_1461067402699.png\" width=\"670\" height=\"352\" alt=\"wpid29936-media_1461067402699.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 3. Clean up existing HTTP Response Headers<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29933-media_1461302048096.png\" width=\"617\" height=\"239\" alt=\"wpid29933-media_1461302048096.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29934-L_F8C0.tmp_.png\" width=\"619\" height=\"317\" alt=\"wpid29934-L_F8C0.tmp_.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>After you have removed <i>Cache-Control<\/i> and <i>Expires<\/i> headers, please follow these steps:<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 4. Add HTTP Response Headers<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29937-media_1461067567011.png\" width=\"530\" height=\"268\" alt=\"wpid29937-media_1461067567011.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 5. Add header &#8211; Cache-Control<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29938-media_1461218285523.png\" width=\"526\" height=\"385\" alt=\"wpid29938-media_1461218285523.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>Specify the values for:<br \/>\n<i><strong>Name<\/strong><\/i>: Cache-Control<br \/>\n<i><strong>Value<\/strong><\/i>: private,max-age=2592000<\/p>\n<p><strong>NOTE:<\/strong> <\/p>\n<ul>\n<li>The value of the &#8220;max-age&#8221; 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.<\/li>\n<\/ul>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Output<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29941-L_C8D3.tmp_.png\" width=\"619\" height=\"193\" alt=\"wpid29941-L_C8D3.tmp_.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 6. Enable Content Compression<\/h3>\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29939-media_1461821907348.png\" width=\"718\" height=\"347\" alt=\"wpid29939-media_1461821907348.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<div class=\"StepImage\" style=\"margin:10px 0px;\">\n<img loading=\"lazy\" decoding=\"async\" style=\"padding:3px; border: 1px solid #ccc;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-layzr=\"http:\/\/www.technosolutions.com\/kb\/wp-content\/uploads\/2018\/01\/wpid29940-media_1461822133244.png\" width=\"681\" height=\"275\" alt=\"wpid29940-media_1461822133244.png\" \/>\n<\/div>\n<div class=\"StepInstructions\">\n<p><strong>NOTE<\/strong>:<br \/>\n1. If &#8220;Enable dynamic content compression&#8221; option is disabled, it indicates that this feature is not installed on IIS Manager. In that case, go to &#8220;Turn Windows features ON or OFF&#8221; section of Windows Control Panel and turn ON the <i>Dynamic Content Compression <\/i>of IIS.<br \/>\n2. Uncheck &#8220;Enable static content compression&#8221; option for Windows 2012 Operating System or higher.<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<h3 class=\"StepTitle\" style=\"font-size:20px;\">Step 7. Restart IIS and clear browser cache<\/h3>\n<div class=\"StepInstructions\">\n<p>Refer to the article <a href=\"http:\/\/www.technosolutions.com\/kb\/6720\/how-to-start-and-stop-topteam-web-server-website-version-8-x-and-above\/\" target=\"_blank\">How to start and stop TopTeam Web Server website<\/a>.<\/p>\n<\/div><\/div>\n<div class=\"LessonStep top\">\n<div class=\"StepInstructions\">\n<p>Revised: January 31st, 2018<\/p>\n<\/div><\/div>\n<\/p><\/div>\n<p><!-- End ScreenSteps Content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &nbsp; Step 2. Open HTTP Response Headers &nbsp; Step 3. Clean up existing HTTP Response Headers &nbsp; After you have removed Cache-Control and Expires headers, please follow these steps: Step 4. Add HTTP Response Headers &nbsp; Step 5. <\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[69,19,88],"class_list":["post-24196","post","type-post","status-publish","format-standard","hentry","category-topteam-web","tag-cache","tag-iis","tag-web-browser"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/paoaNA-6ig","_links":{"self":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/24196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/comments?post=24196"}],"version-history":[{"count":19,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/24196\/revisions"}],"predecessor-version":[{"id":37512,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/posts\/24196\/revisions\/37512"}],"wp:attachment":[{"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/media?parent=24196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/categories?post=24196"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.technosolutions.com\/kb\/wp-json\/wp\/v2\/tags?post=24196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}