Chapter 9. Going Beyond Gzipping

Tony Gentilcore

Besides proper configuration of HTTP caching headers, enabling gzip compression is typically the most important technique for speeding up your web page. A chapter was devoted to compression in Steve Souders’ first book, High Performance Web Sites. Now that all browsers support gzip and all responsible web developers have enabled gzipping, that chapter is closed, right? Not quite.

Even if you have enabled gzipping, there is a good chance that a small but significant portion of visitors to your site are not receiving compressed responses. The exact percentage varies greatly across different demographics and geographies, but a large web site in the United States should expect that roughly 15% of visitors don’t indicate gzip compression support. This chapter explains why the percentage is higher than expected, how that affects performance, and what developers can do about it.

Why Does This Matter?

With such a small percentage, you might ask, “What’s the big deal?” Let’s take a look at what happens to 10 popular web sites when gzipping is disabled.

In this experiment, the page load time[41] for 10 popular web sites was measured by loading each web site 100 times in Internet Explorer 7.0 on Windows XP Pro. The cache remained primed between iterations to better represent the typical experience. All requests traveled through a proxy (Eric Lawrence’s Fiddler[42]) on the same machine. In the control group the proxy did nothing, but ...

Get Even Faster Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.