flash service

High_Performance_Web_Sites

Issue link: https://read.uberflip.com/i/1146286

Contents of this Issue

Navigation

Page 52 of 169

Configuration | 31 The Savings Gzipping generally reduces the response size by about 70%. Table 4-2 shows exam- ples of size reductions for scripts and stylesheets (small and large). In addition to gzip, the results for deflate are also shown. It's clear from Table 4-2 why gzip is typically the choice for compression. Gzip reduces the response by about 66% overall, while deflate reduces the response by 60%. For these files, gzip compresses ~6% more than deflate. Configuration The module used for configuring gzip depends on your version of Apache: Apache 1.3 uses mod_gzip while Apache 2.x uses mod_deflate. This section describes how to con- figure each module, and focuses on Apache because it is the most popular web server on the Internet. Table 4-1. Gzip use for 10 popular U.S. web sites Web site Gzip HTML Gzip scripts Gzip stylesheets http://www.amazon.com ✓ http://www.aol.com ✓ some some http://www.cnn.com http://www.ebay.com ✓ http://froogle.google.com ✓ ✓ ✓ http://www.msn.com ✓ deflate deflate http://www.myspace.com ✓ ✓ ✓ http://www.wikipedia.org ✓ ✓ ✓ http://www.yahoo.com ✓ ✓ ✓ http://www.youtube.com ✓ some some Table 4-2. Compression sizes using gzip and deflate File type Uncompressed size Gzip size Gzip savings Deflate size Deflate savings Script 3,277 bytes 1076 bytes 67% 1112 bytes 66% Script 39,713 bytes 14,488 bytes 64% 16,583 bytes 58% Stylesheet 968 bytes 426 bytes 56% 463 bytes 52% Stylesheet 14,122 bytes 3,748 bytes 73% 4,665 bytes 67%

Articles in this issue

Links on this page

Archives of this issue

view archives of flash service - High_Performance_Web_Sites