Plack::Middleware::Deflater - Compress response body with Gzip or Deflate
enable "Deflater";
Plack::Middleware::Deflater is a middleware to encode your response body in gzip or deflate, based on Accept-Encoding HTTP request header. It would save the bandwidth a little bit but should increase the Plack server load, so ideally you should handle this on the frontend reverse proxy servers.
Accept-Encoding
This middleware removes Content-Length and streams encoded content, which means the server should support HTTP/1.1 chunked response or downgrade to HTTP/1.0 and closes the connection.
Content-Length
This software is licensed under the same terms as Perl itself.
Tatsuhiko Miyagawa
Plack
To install Plack::Middleware::Deflater, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Deflater
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Deflater
For more information on module installation, please visit the detailed CPAN module installation guide.