p5-Plack-Middleware-Precompressed
1.104Perl extension to serve pre-gzipped content to capable clients
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.
Origin: www/p5-Plack-Middleware-Precompressed
Category: www
Size: 14.2KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 3 packages
Required by: 0 packages
$
pkg install p5-Plack-Middleware-PrecompressedDependencies (3)
More in www
py311-requests2.32.5
Python HTTP for Humansp5-libwww6.81
Perl5 library for WWW accessp5-HTML-Parser3.83
Perl5 module for parsing HTML documentsphp84-session8.4.16
The session shared extension for phpp5-Catalyst-Runtime5.90132_1
Elegant MVC Web Application Framework (Runtime)py311-django424.2.29
High-level Python Web Frameworkapache242.4.66
Version 2.4.x of Apache web serverp5-HTTP-Message7.01
Representation of HTTP style messagesp5-Template-Toolkit3.102
Extensible template processing systemp5-Plack1.0051
Perl extension of PSGI reference implementation and utilities