Welcome to
Ashutosh Nilkanth’s Blog
on Life and Technology!
You can quickly checkout the blog’s “greatest hits“, or read a post from the archives.
Or you can continue reading the latest posts and articles below, and rate them by selecting a star rating to the right of each post.
Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. You can also follow me on Twitter. Thanks for visiting!
If they were Gzipped, everyone will save bandwidth
What’s common among these websites: Digg, MSN, Orkut, Reddit, Wikipedia, eBay, Blogger and Flickr. Besides being some of the most popular, they are also prone to the excessive bandwidth consumption. And believe it or not, if each one of these web sites was “Gzipped”, then everyone could potentially conserve 65-75% bandwidth. See this example report. That’s a potential bandwidth saving for the web service as well as the end-user.
So what is Gzip? It’s a utility which compresses data. Gzip can also be used for Internet data compression. Gzip is widely available as a filter for both Windows (and this) and Linux web servers; and it is integratable in web programming languages like PHP and ASP.NET (and this, and this).
This blog as well as my web projects (like Feedity) are Gzipped for bandwidth conservation. Then what’s stopping the popular websites from making use of Gzip and serving compressed pages to the audience? There are different theories to this cavet. First, the CPU usage associated with on-the-fly Gzip compression of web pages may affect server performance (I doubt that being the case in clustered load-balancing architectures, like most of the popular websites have). Second, there have been reports that Gzipped webpages which have JavaScript/AJAX functions break down. The key question is that whether these factors are greater than the expected savings on bandwidth?
Never-the-less, Gzipping your website is an ideal practice for small & medium scale web applications.
Posted under .NET Web Dev, Technology, Tools and Services | Posted on Sat, 24th Feb 2007 2:31 am

You say:
> Second, there have been reports that Gzipped
> webpages which have JavaScript/AJAX functions
> break down.
That’s interesting. Can you give any examples (or links) where this problem is described any further?
BTW, I just posted an article about Gzip compression of web service APIs on my blog yesterday, pretty much along the same lines.
http://www.sendung.de/archives/2007/04/09/web-services-output-formats-and-gzip-compression/
Cheers,
Marian