Req #69493 [Com]: Compress by default

From: Date: Tue, 27 Jul 2021 14:30:15 +0000
Subject: Req #69493 [Com]: Compress by default
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235410@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69493&edit=1 ID: 69493 Comment by: rtrtrtrtrt at dfdfdfdf dot dfd Reported by: olafvdspek at gmail dot com Summary: Compress by default Status: Open Type: Feature/Change Request Package: *General Issues Operating System: * PHP Version: Irrelevant Block user comment: N Private report: N New Comment: > Is that better / recommended? it was never the job of the scripting language to handle http compression > Is that recommendation documented? surely: https://httpd.apache.org/docs/2.4/mod/mod_deflate.html Previous Comments: ------------------------------------------------------------------------ [2021-07-27 07:40:19] olafvdspek at gmail dot com > Oh, is it that hard to enable that setting in php.ini, It's not that hard.. but I think it could be simpler. > or even > better, not to use it, but rather configure your Webserver to do > that? Is that better / recommended? Is that recommendation documented? ;) ------------------------------------------------------------------------ [2021-07-26 13:48:10] rtrtrtrtrt at dfdfdfdf dot dfd it's not hard to let take care about compression in the webserver, but it doesn't make enough problems for some people when it's done based on request-headers so that it works without issues :-) and hell: the webserver even can decide if brotli or gz compression satisfies the client, way too less troubles ------------------------------------------------------------------------ [2021-07-26 13:41:55] cmb@php.net Oh, is it that hard to enable that setting in php.ini, or even better, not to use it, but rather configure your Webserver to do that? ------------------------------------------------------------------------ [2015-04-21 08:02:55] olafvdspek at gmail dot com Description: ------------ It'd be nice if output compression was enabled by default. Perhaps based on content type such that text/* and javascript are compressed. Obviously the default should not cause troubles with scripts that enable compression themselves. Test script: --------------- Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Expected result: ---------------- Output compression Actual result: -------------- No output compression ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69493&edit=1

« previous php.bugs (#235410) next »