Open bschmalhofer opened 3 years ago
The app https://metacpan.org/pod/Plack::App::MCCS and the middleware https://metacpan.org/pod/Plack::Middleware::MCCS look nice too.
Testing for #1032 showed an issue for Plack::Middleware::Deflater. There was a complaint about wide characters from Compress::Raw::Zlib::crc32. We need to think some more about deflating content.
My conclusion is that activating DEFLATE is neither the responsibility of otobo.psgi nor of zzz_otobo.conf. In the Apache case we have mods-enabled/deflate.conf . Or DEFLATE could be handled by nginx. For Gazelle there should also be a solution that is nicer than adding Plack::Middleware::Deflate to otobo.psgi.
TODO:
DEFLATE under Gazelle is a separate issue. Let's open a new issue for that. The goal is that zipping the content should be possible without fiddling with otobo.psgi.
The default Apache configuration scripts/apache2-httpd.include.conf activates deflation.
Maybe adding deflation to otobo.psgi is a good idea too. This could be done by adding the middleware https://metacpan.org/pod/Plack::Middleware::Deflater . Are there any downsides to using the middleware?