BSD Ports

www/p5-Plack-Middleware-Precompressed 1.104 DragonFly

Perl extension to serve pre-gzipped content to capable clients

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, www
Package size
8.3 KiB, 14.4 KiB installed

Description

Plack::Middleware::Precompressed is an alternative (or rather, complement) to middlewares like Deflater, which will compress response bodies on the fly. For dynamic resources, that behaviour is necessary, but for static resources it is a waste: identical entities will be compressed over and over. Instead, Precompressed allows you to compress static resources once, e.g. as part of your build process, and then serve the compressed resource in place of the uncompressed one for compression-enabled clients.

To do so, it appends a .gz suffix to the request URI and tries to serve that. If that fails, it will try again with the unmodified URI.

In the other systems

The newest version among them is 1.104, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/p5-Plack-Middleware-Precompressed1.104 newestnone known-[email protected]-
FreeBSDwww/p5-Plack-Middleware-Precompressed1.104 newestnone known-[email protected]-
HardenedBSDwww/p5-Plack-Middleware-Precompressed1.104 newestno data-[email protected]-
GhostBSDwww/p5-Plack-Middleware-Precompressed1.104 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Plack-Middleware-Precompressed

From DPorts:

cd /usr/dports/www/p5-Plack-Middleware-Precompressed && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3

No port depends on this one.