Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
oalders
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Plack/Middleware
t
.gitignore
Changes
MANIFEST.SKIP
README
dist.ini

README

NAME
    Plack::Middleware::NoDeflate - Prevent content from being deflated

VERSION
    version 0.01

SYNOPSIS
        enable 'NoDeflate';

DESCRIPTION
    Plack::Middleware::NoDeflate is middleware which prevents content from
    being deflated before being served. It sets HTTP_ACCEPT_ENCODING to a
    blank value, which means that HTML and text will not be deflated by
    servers and applications which respect this environment variable.

MOTIVATION
    Plack::Middleware::Debug does not work with deflated content. In many
    cases, you'll be able to fix this by disabling any deflation in the
    development process, but that's not always the case. Further, if you're
    trying to mangle the response body of a proxied URL with your own
    middleware, you'll find yourself with the same problem.

    One way to deal with this would be to re-inflate the deflated content
    yourself. Another, simpler way, is simply to prevent the content from
    being deflated in the first place, which is what this module does.

SEE ALSO
    Plack::Middleware::Deflater

AUTHOR
    Olaf Alders <olaf@wundercounter.com>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2010 by Olaf Alders.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

Something went wrong with that request. Please try again.