Home > Uncategorized > how to enable the compression on IIS7

how to enable the compression on IIS7

OK, the static compression is already enabled by default. But when you need to compress the Document Manager pages, you need the dynamic compression.

So, you may proceed as follows:

install the Dynamic compression feature for your IIS role (I am speaking about Windows 2008, so…)

type the command

%systemroot%\System32\inetsrv\appcmd set config -section:urlCompression /doDynamic
Compression:true

and then, if you do not like 7 (default) as compression level, you can change it with

%windir%\system32\inetsrv\appcmd.exe set config -section:httpCompression -[name='gzip'].dynamicCompressionLevel:<value>

%windir%\system32\inetsrv\appcmd.exe set config -section:httpCompression -[name='gzip'].staticCompressionLevel:<value>

as a reference:

IIS.NET blog

IIS.NET forum thread

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: