mu.nu - We're sorry we accidentally destroyed your panties.
December 17, 2004
Speed
Want something that can both speed up your page load time and cut down on bandwidth, thus preventing another potential meltdown? Then I'm here to help. Well, not me. But try this...and once you've rebuilt you can test it here.
In geek talk:Anyone with a recent version of PHP (4.1+) running on their server can easily take advantage of this. Benefits are greatly reduced bandwidth consumption and a much speedier site, especially for readers using modems. Simply place the following snippet at the very first line of PHP-aware web pages, before : <?php ob_start("ob_gzhandler"); ?> And that’s it.It does have to be the very first line; but it works - I've just done it on mine and it validated.
Posted by: Simon at 08:16 AM | Comments (6) | Add Comment | Trackbacks (Suck)
1
Thanks Simon. The mu.nu forums have been gzipped for a while, but I didn't know it was that easy to gzip an arbitrary page. (Until I saw it yesterday on LGF...) And the validator is very handy.
Posted by: Pixy Misa @ at December 17, 2004 12:21 PM
2
Well finally! I've been scrounging to try to figure out how to do this for some time.
Great find, Simon!
Great find, Simon!
Posted by: Light & Dark @ at December 17, 2004 06:08 PM
Processing 0.01, elapsed 0.0078 seconds.
22 queries taking 0.0053 seconds, 24 records returned.
Page size 7 kb.
Powered by Minx 0.8 beta.