HTTP Compression


Sometime back in the office, we wanted to find ways to reduce the loading time of the the Web application we have been developed for the past year. During this process I came across several approaches and tools, some which discussed about best practices that should be followed even when we are developing a simple application while some provided solutions that can directly applied to the web server.

Today Internet has revolutionized our daily activities and the web site is playing a major part there. So it’s very important that the web page load as quickly as possible. In this effort I found that Yahoo has provided loads of valuable resources through tutorials, videos, tools(YSlow, Smush.it™, JSLint, YUI, etc…), etc… that greatly helps the web developers to improves their understanding about the basics that do matters most.

Another approach I came across is the HTTP Compression, which makes the content compressed at the web server and sent to the web client(browser) over the wire, which saves the bandwidth, increases the loading time, etc… Here the Web browser handles the decompression of the content before displaying it to the user. Currently almost all the modern Web browsers handles it without any problem, so it’s a safer and an effective approach to increase the performance of the Web application.

Following is an approach I found in the Ubuntu forum that helped me to enable the HTTP compression in the server which I had worked.