about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:29 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commita3f00c4a7851b98b81a2fcb31d5ed131908e22de (patch)
tree92cfd147157413f7bfa848cc9f1aead244cc498e
parentf982abbaa39e07090d3fb641fd9de25434c0d74c (diff)
downloadpublic-inbox-a3f00c4a7851b98b81a2fcb31d5ed131908e22de.tar.gz
Instead of gzipping some (mbox.gz, manifest.js.gz) responses and
leaving P::M::D to do the rest, we gzip everything ourselves,
now, so P::M::D is redundant.
-rw-r--r--Documentation/public-inbox-httpd.pod1
-rw-r--r--INSTALL5
-rwxr-xr-xci/deps.perl1
-rw-r--r--examples/cgit.psgi8
-rw-r--r--examples/newswww.psgi8
-rw-r--r--examples/public-inbox.psgi9
-rw-r--r--examples/unsubscribe.psgi1
-rwxr-xr-xscript/public-inbox-httpd9
-rwxr-xr-xscript/public-inbox.cgi7
9 files changed, 0 insertions, 49 deletions
diff --git a/Documentation/public-inbox-httpd.pod b/Documentation/public-inbox-httpd.pod
index c1ebfd82..2f4e9e5d 100644
--- a/Documentation/public-inbox-httpd.pod
+++ b/Documentation/public-inbox-httpd.pod
@@ -15,7 +15,6 @@ the PSGI file.
 
 If a PSGI file is not specified, L<PublicInbox::WWW> is
 loaded with a default middleware stack consisting of
-L<Plack::Middleware::Deflater>,
 L<Plack::Middleware::ReverseProxy>, and
 L<Plack::Middleware::Head>
 
diff --git a/INSTALL b/INSTALL
index 05e0f95e..9f05c3f6 100644
--- a/INSTALL
+++ b/INSTALL
@@ -100,11 +100,6 @@ Numerous optional modules are likely to be useful as well:
                                    (ensures redirects are correct when running
                                     behind nginx or Varnish)
 
-- Plack::Middleware::Deflater      deb: libplack-middleware-deflater-perl
-                                   pkg: p5 -Plack-Middleware-Deflater
-                                   rpm: perl-Plack-Middleware-Deflater
-                                   (saves bandwidth on responses)
-
 * highlight                        deb: libhighlight-perl
                                    (for syntax highlighting with coderepo)
 
diff --git a/ci/deps.perl b/ci/deps.perl
index 501f5112..77d95fc8 100755
--- a/ci/deps.perl
+++ b/ci/deps.perl
@@ -36,7 +36,6 @@ my $profiles = {
                 Net::Server
                 Plack
                 Plack::Test
-                Plack::Middleware::Deflater
                 Plack::Middleware::ReverseProxy
                 Search::Xapian
                 Socket6
diff --git a/examples/cgit.psgi b/examples/cgit.psgi
index e72e832d..7ad38e28 100644
--- a/examples/cgit.psgi
+++ b/examples/cgit.psgi
@@ -18,14 +18,6 @@ my $pi_config = PublicInbox::Config->new;
 my $cgit = PublicInbox::Cgit->new($pi_config);
 
 builder {
-        eval {
-                enable 'Deflater',
-                        content_type => [ qw(
-                                text/html
-                                text/plain
-                                application/atom+xml
-                                )]
-        };
         eval { enable 'ReverseProxy' };
         enable 'Head';
         sub { $cgit->call($_[0]) }
diff --git a/examples/newswww.psgi b/examples/newswww.psgi
index 3cce7191..52ad7043 100644
--- a/examples/newswww.psgi
+++ b/examples/newswww.psgi
@@ -36,14 +36,6 @@ builder {
         # regular PublicInbox::WWW code:
         # see comments in examples/public-inbox.psgi for more info:
         mount '/' => builder {
-                eval {
-                        enable 'Deflater',
-                                content_type => [ qw(
-                                        text/html
-                                        text/plain
-                                        application/atom+xml
-                                        )]
-                };
                 eval { enable 'ReverseProxy' };
                 enable 'Head';
                 sub { $www->call($_[0]) }
diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index 9891a1f0..3537be2c 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -22,15 +22,6 @@ my $src = $ENV{SRC_GIT_DIR}; # '/path/to/public-inbox.git'
 $src = PublicInbox::Git->new($src) if defined $src;
 
 builder {
-        eval {
-                enable 'Deflater',
-                        content_type => [ qw(
-                                text/html
-                                text/plain
-                                application/atom+xml
-                                )]
-        };
-
         # Enable to ensure redirects and Atom feed URLs are generated
         # properly when running behind a reverse proxy server which
         # sets the X-Forwarded-Proto request header.
diff --git a/examples/unsubscribe.psgi b/examples/unsubscribe.psgi
index 6a40f251..7b97e253 100644
--- a/examples/unsubscribe.psgi
+++ b/examples/unsubscribe.psgi
@@ -61,7 +61,6 @@ my $app = PublicInbox::Unsubscribe->new(
 
 builder {
         mount '/u' => builder {
-                eval { enable 'Deflater' }; # optional
                 eval { enable 'ReverseProxy' }; # optional
                 enable 'Head';
                 sub { $app->call(@_) };
diff --git a/script/public-inbox-httpd b/script/public-inbox-httpd
index 09da505e..b8159f3a 100755
--- a/script/public-inbox-httpd
+++ b/script/public-inbox-httpd
@@ -27,15 +27,6 @@ my $refresh = sub {
                 my $www = PublicInbox::WWW->new;
                 $www->preload;
                 $app = builder {
-                        eval {
-                                enable 'Deflater',
-                                        content_type => [ qw(
-                                                text/html
-                                                text/plain
-                                                application/atom+xml
-                                                )]
-                        };
-
                         eval { enable 'ReverseProxy' };
                         $@ and warn
 "Plack::Middleware::ReverseProxy missing,\n",
diff --git a/script/public-inbox.cgi b/script/public-inbox.cgi
index c766483a..42ab17c9 100755
--- a/script/public-inbox.cgi
+++ b/script/public-inbox.cgi
@@ -13,14 +13,7 @@ BEGIN {
         PublicInbox::WWW->preload if $ENV{MOD_PERL};
 }
 my $www = PublicInbox::WWW->new;
-my $have_deflater = eval { require Plack::Middleware::Deflater; 1 };
 my $app = builder {
-        if ($have_deflater) {
-                enable 'Deflater',
-                        content_type => [ 'text/html', 'text/plain',
-                                        'application/atom+xml' ];
-        }
-
         # Enable to ensure redirects and Atom feed URLs are generated
         # properly when running behind a reverse proxy server which
         # sets the X-Forwarded-Proto request header.