Mojolicious::Plugin::GzipStatic - Mojolicious Plugin to compress the static files before serving them.
# Mojolicious $self->plugin('GzipStatic'); # Mojolicious::Lite plugin 'GzipStatic';
Mojolicious::Plugin::GzipStatic is a Mojolicious plugin to compress the static files before serving them.
See https://en.wikipedia.org/wiki/HTTP_compression and http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Post-processing-dynamic-content.
Mojolicious::Plugin::GzipStatic inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicious.org, Mojolicious::Static, IO::Compress::Gzip.
To install Mojolicious::Plugin::GzipStatic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::GzipStatic
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::GzipStatic
For more information on module installation, please visit the detailed CPAN module installation guide.