CGI-Compress-Gzip

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    See the CAVEATS section below!

DESCRIPTION
    CGI::Compress::Gzip extends the CGI module to auto-detect whether the
    client browser wants compressed output and, if so and if the script
    chooses HTML output, apply gzip compression on any content header for
    STDOUT. This module is intended to be a drop-in replacement for CGI.pm.

    Apache mod_perl users may wish to consider the Apache::Compress or
    Apache::GzipChain modules, which allow more transparent output
    compression than this module can provide. However, as of this writing
    those modules are more aggressive about compressing, regardless of
    Content-Type.

  Headers

    At the time that a header is requested, CGI::Compress::Gzip checks the
    HTTP_ACCEPT_ENCODING environment variable (passed by Apache). If this
    variable includes the flag "gzip" and the outgoing mime-type is
    "text/*", then gzipped output is preferred. [the default mime-type

lib/CGI/Compress/Gzip.pm  view on Meta::CPAN


=head1 DESCRIPTION

CGI::Compress::Gzip extends the CGI module to auto-detect whether the
client browser wants compressed output and, if so and if the script
chooses HTML output, apply gzip compression on any content header for
STDOUT.  This module is intended to be a drop-in replacement for
CGI.pm.

Apache mod_perl users may wish to consider the Apache::Compress or
Apache::GzipChain modules, which allow more transparent output
compression than this module can provide.  However, as of this writing
those modules are more aggressive about compressing, regardless of
Content-Type.

=head2 Headers

At the time that a header is requested, CGI::Compress::Gzip checks the
HTTP_ACCEPT_ENCODING environment variable (passed by Apache).  If this
variable includes the flag "gzip" and the outgoing mime-type is
"text/*", then gzipped output is preferred.  [the default mime-type



( run in 0.546 second using v1.01-cache-2.11-cpan-a1d94b6210f )