gzip Http Compression in IIS
References URLS:
- http://www.codinghorror.com/blog/archives/000059.html
- http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx
Enable Compression in IIS
- From the IIS snap-in, right-click on the Web Sites node and click on Properties
- Select the Service tab - Enable Compress application files
- Enable Compress static files
- Change Temporary Directory to the folder that you created above, or leave it at it's default
- Set the max size of the temp folder to something that the hard drive can handle. e.g. 1000.
- Save and close the Web Site Properties dialog
Note: The temporary compress directory is only used for static pages. Dynamic pages aren't saved to disk and are recreated every time so there is some CPU overhead used on every page request for dynamic content.
<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/deflate" HcCompressionDll="%windir%\system32\inetsrv\gzip.dll" HcCreateFlags="0" HcDoDynamicCompression="TRUE" HcDoOnDemandCompression="TRUE" HcDoStaticCompression="FALSE" HcDynamicCompressionLevel="0" HcFileExtensions="htm html txt css" HcOnDemandCompLevel="10" HcPriority="1" HcScriptFileExtensions="asp dll exe aspx asmx js" > </IIsCompressionScheme> <IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/gzip" HcCompressionDll="%windir%\system32\inetsrv\gzip.dll" HcCreateFlags="1" HcDoDynamicCompression="TRUE" HcDoOnDemandCompression="TRUE" HcDoStaticCompression="TRUE" HcDynamicCompressionLevel="0" HcFileExtensions="htm html txt css" HcOnDemandCompLevel="10" HcPriority="1" HcScriptFileExtensions="asp dll exe aspx asmx js" > </IIsCompressionScheme>
From a CMD
prompt, iisreset stop
Now save metabase.xml
CMD
prompt, iisreset
No comments:
Post a Comment