Results 1 to 6 of 6

Thread: Gzip

  1. #1
    Join Date
    Mar 2004
    Posts
    1,005

    Gzip

    Can anyone please tell me whether if its a good diea to enable GZIP ?
    Will it place additional load on the server with html/forum websites ?

    For example i have noticed that GZIP is disabled on WHT
    Best Regards,
    Namesniper

  2. #2
    Join Date
    Dec 2006
    Posts
    66
    mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. There is no need to install any additional software on the client! . You should have compression enabled giving you faster load times.

    Compression encoding reduces a web sites data transfer level, thereby helping to substantially reduce bandwith costs. As bandwith tends to cost far more than hardware, compression encoding is a good practice.


    Content compression places an additional CPU load on the server and encoded web pages typically take slightly longer to render within the clients browser than uncompressed web pages due to the additional processing overhead that is required

    As is the case with data compression in general the greatest savings to are to be made when the formats to be compressed are of a textual nature. Whilst ASCII or HTML files can be easily compressed using gzip by 75% or more, already optimized files formats such as JPEG's, executable or archive files tend not to compress as well if at all.


    Broadband web site users gain very little from compression in terms of perceived performace. However, vistors with slow Internet connections such as dial up users will experience considerable faster transmission times, between compression-enabled browsers and web servers.
    Reverse engineering Rocks

  3. #3
    Join Date
    Mar 2004
    Posts
    1,005
    cybersavvy thanks for info
    Best Regards,
    Namesniper

  4. #4
    Join Date
    Dec 2004
    Location
    New York City, NY, USA
    Posts
    735
    Quote Originally Posted by cybersavvy
    Compression encoding reduces a web sites data transfer level, thereby helping to substantially reduce bandwith costs. As bandwith tends to cost far more than hardware, compression encoding is a good practice.
    Actually, lately bandwidth has been cheaper than hardware, as CPUs have not been getting significantly faster. Many popular websites (e.g. WHT) disable gzip compression because bandwidth is cheaper than buying more powerful servers.

  5. #5
    Join Date
    Mar 2003
    Location
    Saint Paul, MN
    Posts
    826
    As in so many things in life, the benefits of Gzip compression depend on how you're doing it, and what you're doing it to. Mod_Gzip, for Apache, has known problems with HTTPS, and there are workarounds, but it's still annoying. On the plus side, it compresses plain HTML, and really anything else you configure it to. The mod_compress, I think it's called, in Lighttpd seems to work a lot better, and is very similar to the Apache module in terms of features and performance.

    We do Gzip compression server-wide on all our machines thru PHP (ob_gzhandler), which is the other alternative (there are a couple ways to do it with PHP, including, I think, thru Eaccelerator.) This (obviously) only compresses the output of PHP pages, but this covers forums and message boards and blogs, which is often where you see the most benefit. RSS feeds, in particular, often compress really nicely to around 20-40% of their original size.

    Either way you do it (if you do it), you trade a slight (milliseconds) delay in page generation time for a shorter page load time, and use less bandwidth in the process. The CPU overhead is minimal, and beyond a certain level of compression (around 5 or 6) you start to run into diminishing returns; there's only so far you can compress any given webpage.

    For us, it's a no-brainer; for people trying to squeeze every last pageview out of an unmetered server somewhere, it might not be such a great choice.
    redpin.com - offering amazingly competent email, dns, and web hosting since 2002... because someone has to!
    Because Simple Things Should Be Simple - YouCANHasDNS

  6. #6
    Join Date
    Mar 2004
    Posts
    1,005
    Btw i was also wondering why WHT pages are opening so slow,is it a kind of limitation they made to not get the server overloaded ?
    Best Regards,
    Namesniper

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •