in reply to Size of a webpage

Have a look at Apache::Dynagzip You can use it on static as well as dynamic content. By compressing content before you send it a 50KB page becomes a 5-10KB bandwidth tranmission. Almost all modern browsers will accept compressed content so it is win-win. Google, Slashdot and almost all the biggies use compression. You should also look towards removing all the extraneous whitespace from the docs you serve. View source on Google for example. No spare spaces get sent. Compress::LeadingBlankSpaces (works with Dynagzip) will do this for you.

cheers

tachyon

Replies are listed 'Best First'.
Re^2: Size of a webpage
by dont_you (Hermit) on Jun 17, 2004 at 09:22 UTC
    Be aware that MSIE (5.5 SP1/2 and 6 without SP) corrupts cached compressed pages. A fresh install of XP (IE6), for example, shows corrupted pages the second time that you access to some site that gzip pages and allow caching of these (sending Last-Modified headers, etc.).
    See some of the MS articles about this: Q313712 and Q312496.
    Sadly, thanks to this widespread bug, we should choice between compress pages, or allow caching.
    Slashdot and Google doesn't allow caching, I think.
    José

      Hey this is Perl..... If you read the Docs you will see:

      It is strongly recommended to use Apache::CompressClientFixup handler in order to avoid compression for known buggy browsers. Apache::CompressClientFixup package can be found on CPAN

      This works with any of the gzip compression modules and does not serve gzip compressed content to buggy browsers. The articles you quote are quoted in its docs. So you can have you cake and eat it.

      cheers

      tachyon

        As version 0.07 of CompressClientFixup, documentation states that "This version of the handler does not restrict compression for MSIE over HTTP".
        So, this version still send compressed content to buggy browsers.
        Anyway, It had no sense to fix the module to restrict compression to MSIE 5.5 and 6 (maybe 85% of users? or 95%?), in that case simply don't use compression.
        I warn about this because playing with gzipped pages gave me a big big headache.
        Regards,
        José.