Plack::Middleware::NoDeflate - Prevent content from being deflated
version 0.01
enable 'NoDeflate';
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.
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.
Plack::Middleware::Deflater
Olaf Alders <olaf@wundercounter.com>
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.
To install Plack::Middleware::NoDeflate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::NoDeflate
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::NoDeflate
For more information on module installation, please visit the detailed CPAN module installation guide.