Enabling compression of static and dynamic contents of your website will be more help to load your website faster on browsers.
To enabling both you must have to install “Dynamic Compression” and “Static Compression” on the server features and roles.
Open server manager
Roles > Web Server (IIS)
Role Services (scroll down) > Add Role Services
Add desired role (Web Server > Performance > Dynamic Content Compression & Static Content Compression)
Next, Install, Wait for couple of seconds?Done!
To Enable it:
Open your web.config and add the following configuration in webServer tag.
[xml]
<system.webServer>
<urlCompression doStaticCompression=”true” doDynamicCompression=”true” dynamicCompressionBeforeCache=”true”/>
<httpCompression noCompressionForHttp10=”false” noCompressionForProxies=”false” dynamicCompressionDisableCpuUsage=”93″ dynamicCompressionEnableCpuUsage=”93″ staticCompressionDisableCpuUsage=”99″ staticCompressionEnableCpuUsage=”99″>
<scheme name=”gzip” dll=”%Windir%\System32\Inetsrv\gzip.dll” staticCompressionLevel=”9″ dynamicCompressionLevel=”4″ doDynamicCompression=”true” doStaticCompression=”true”/>
</httpCompression>
</system.webServer>
[/xml]
Leave a Reply