With increased bandwidth charges and other associated overheads incurred with high data flow, HTTP compression may help you out a bit, especially if you have a powerful server which has plenty CPU cycles to spare.
Check if YOUR website is using compression or not, and see how much you could save if you enable it.
http://www.port80software.com/support/p80tools
You can expect anything between a 50% – 80% cut in HTTP traffic if you enable HTTP conpression… and here’s how.
1. Select the “Web Sites” node in your IIS admin MMC, right click and select Properties.
2. Select the Service tab and tick both the “Compress application files” and “Compress static files” tick boxes. You must have both boxes ticked in order for application files to be compressed, although you will not be prompted with this information.
3. Once the Compress static files box is ticked the “Temporary directory field” should become active.
Enter the directory in which you would like IIS to store your temporary compressed static files. The default value is %windir%\IIS Temporary Compressed Files, but you can set it to whatever you like.
If management of hard drive space is an issue for you, you can set the “Maximum temporary directory size” value by selecting the Limited to (in megabytes) radio button and then setting your specified value in the text field provided. If you have this option set then once the limit is reached older cached files are purged to allow new ones to be created.
4. Select the “Web service extensions” node, right click and select the “Add a new web service extension…” item from the menu. You should now be presented with a “New web service extension” dialogue box.
Place the name you wish to call the extension (this name will appear in the web service extensions list) in the Extension name text field.
In the Required files section click on the Add button and you should be presented with an Add file box. Browse to the gzip.dll file which should be located in X:\Windows\system32\inetsrv (where X is your system drive). Once you have found the file, select it and then click the OK. You should now see the full path to the gzip.dll file listed. Tick the box “Set extension status” to allowed so that this extension is allowed. Without setting this the extension will not work and compression will not be enabled. Click the OK button to apply the settings
5. Select the SERVER node at the top of the tree in your IIS Admin MMC (where SERVER is the name of your computer), right click it and then select the Properties menu item. Tick the “Enable direct metabase edit” tick box, and then click OK to apply the changes. What this does is allow you to edit and save your metabase.xml file, as otherwise it is locked when IIS is running. Be sure that you have backed up your IIS6 metabase.xml file.
Open your favourite text editor, and then open your metabase.xml which is located in X:\Windows\system32\inetsrv (where X is your system drive). Do a search for;
<IIsCompressionScheme>
This should bring up two results. One for deflate and one for gzip
Search for the following tag in both the deflate and gzip sections;
HcScriptFileExtensions
Add the php extension under these tags taking careful note to follow the correct syntax. Use the existing syntax for an example if unsure. You might also like to add extensions for any other script extensions while you are here such as aspx and asmx. Dynamic content is never cached by IIS like static content is, and is compressed each time that dynamic content is requested. This means compression of dynamic will consume significantly higher memory and CPU resources which you will need to take into consideration
Search for the following tag in both the deflate and gzip sections;
HcDynamicCompressionLevel
This is set to 0 by default, which isn’t going to give us much compression. 0 is the lowest value with 10 being the highest. However, from what I have read 9 seems to be the sweet spot as setting it to 10 consumes a lot more CPU resources without delivering much more compression. I would recommend setting this value to 9.
Save the file and then exit your editor
Restart IIS
The final step needed to be taken is for the IIS services to be restarted so that your changes are put into effect.
Select the SERVER node at the top of the tree in your IIS Admin MMC (where SERVER is the name of your computer), right click it, select the All tasks menu and then select the Restart IIS menu item.
In the Stop/start/restart window, select the Restart Internet services on SERVER (where SERVER is the name of your computer) option as shown below in figure 9
Congratulation! You should now have IIS compression… check to make sure it’s working by going back to
the online compression checking tool at http://www.port80software.com/support/p80tools