Technical Note: Things Are Zippier

Charles Johnsonfollow me on twitter
Wed Feb 13, 2008 at 4:21 pm PST • Views: 216

After bogging down quite a bit today with a flood of traffic, I’m trying a new technique (new for LGF anyway) to cut the size of the files that have to be downloaded in order to display our pages, and improve the page loading speed for all our visitors. Last night we recompiled Apache with mod_gzip, and tonight I’ve enabled gzip compression on all files except images and stuff that’s already compressed, like PDF files and video.

(And yes, that recompiling of Apache is what caused our short downtime last night—the Cpanel virtual host manager went haywire and forgot the settings after the recompilation.)

This gzip compression means dramatic savings in file sizes. For example, the total size of our CSS and Javascript files before compression: 165,123 bytes. After compression: 41,364 bytes. That’s about one quarter of the size! The fewer bytes that have to be transferred for each page load, the faster things are for everyone.

Our PHP scripts were already being compressed through PHP’s zlib compression feature, so there’s no savings on those, but I disabled the PHP compression and let Apache do it instead, which should also take some of the strain off the PHP interpreter.

Advertisement

172 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Overdrawn at the bank of karma.

TwitterFacebook
LGF Pages
Recent Pages

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
1 hour, 2 minutes ago
Views: 34 • Comments: 0
Tweets: 0 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
8 hours, 44 minutes ago
Views: 87 • Comments: 0
Tweets: 0 • Rating: 3

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
8 hours, 47 minutes ago
Views: 106 • Comments: 1
Tweets: 0 • Rating: 0

Eclectic Infidel
City College of San Francisco Budget Update
9 hours, 36 minutes ago
Views: 104 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
14 hours, 6 minutes ago
Views: 213 • Comments: 6
Tweets: 0 • Rating: 5

Aigle
National Geographic Traveler Veers Off Track
1 day, 14 hours ago
Views: 435 • Comments: 7
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 15 hours ago
Views: 215 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 16 hours ago
Views: 290 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 16 hours ago
Views: 508 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 19 hours ago
Views: 261 • Comments: 2
Tweets: 0 • Rating: 4

 Frank says:

Jazz is not dead...it just smells funny.