Monday, February 28, 2011

HTTP Compression

 What is HTTP compression?
As the name states it compresses specified files types when they are requested by clients. This is done on the fly.
Advantages:
  1. Bandwidth consumed is less since mentioned file types are compressed and then sent to client.
  1. Faster data transmission.
Disadvantage:
  1. CPU usage is more.
How to enable HTTP compression in IIS?
  1. Open IIS
  2. Right click website for which compression needs to be enabled.
  3. Select ‘service’ tab.
  4. Check the option ‘Enable HTTP compression’.
How to enable and enable/disable for specified application?
This cannot be done through IIS. However this can be done using scripts. Following command used to enable/disable HTTP compression for specific application.
cscript.exe adsutil.vbs SET w3svc/1/root/APPLICATION NAME /DoDynamicCompression true
cscript.exe adsutil.vbs SET w3svc/1/root/APPLICATION NAME /DoDynamicCompression false

 

1 comment:

  1. Good about your first blog! thank you. My best wishes for your upcoming blogs!! :-) Good luck!

    ReplyDelete