You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mark Hewis <ma...@bbc.co.uk> on 2000/06/07 15:21:13 UTC

Big pages and gzip

it would seem to be quite straight forward to implement a handler to gzip
all output html files depending on the allowed mime-types and/or user_agent.
This would reduce many pages by up to a factor of 10 in size. 

1) Is anyone already doing?
2) If not why not?
3) what borwsers would accept html files in a gzipped format

Thanks

Mark

This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views which are not the views of the BBC, unless specifically stated.

Re: Big pages and gzip

Posted by Ken Williams <ke...@forum.swarthmore.edu>.
sbekman@stason.org (Stas Bekman) wrote:

>On Wed, 7 Jun 2000, Mark Hewis wrote:
>
>> it would seem to be quite straight forward to implement a handler to gzip
>> all output html files depending on the allowed mime-types and/or user_agent.
>> This would reduce many pages by up to a factor of 10 in size. 
>> 
>> 1) Is anyone already doing?
>> 2) If not why not?
>> 3) what borwsers would accept html files in a gzipped format
>
>it's there for a long time:
>Apache::Gzip
>Apache::GzipChain

Actually, as far as I know there's no Apache::Gzip.  But that's a lie
too - I've been harboring a new Apache::Gzip that seems to work, and
plays well with Apache::Filter too.  As if you couldn't guess that based
on my other modules. =)

I think I'll have a version of Apache::Gzip up on CPAN within a couple
of days.  Eager-worts can look at
http://mathforum.com/~ken/modules/Apache-Gzip/ in the meantime.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  ken@forum.swarthmore.edu                            The Math Forum



Re: Big pages and gzip

Posted by Stas Bekman <sb...@stason.org>.
On Wed, 7 Jun 2000, Mark Hewis wrote:

> it would seem to be quite straight forward to implement a handler to gzip
> all output html files depending on the allowed mime-types and/or user_agent.
> This would reduce many pages by up to a factor of 10 in size. 
> 
> 1) Is anyone already doing?
> 2) If not why not?
> 3) what borwsers would accept html files in a gzipped format

it's there for a long time:
Apache::Gzip
Apache::GzipChain

It's based on the Accept-Encoding =~ /gzip/ match, and some use User-Agent
but the first one should be enough. (The second is used to discard agents
that known not to handle GZIP while they claim that they can)

For more info see the guide and modules' respective manpages.

> Thanks
> 
> Mark
> 
> This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views which are not the views of the BBC, unless specifically stated.
> 



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:stas@stason.org   http://perl.org     http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org