* (bug 17537) Disable bad zlib.output_compression output on HTTP 304 responses
[lhc/web/wiklou.git] / includes / OutputPage.php
index ce35056..7fbd77b 100644 (file)
@@ -233,6 +233,7 @@ class OutputPage {
                # Not modified
                # Give a 304 response code and disable body output 
                wfDebug( __METHOD__ . ": NOT MODIFIED, $info\n", false );
+               ini_set('zlib.output_compression', 0);
                $wgRequest->response()->header( "HTTP/1.1 304 Not Modified" );
                $this->sendCacheControl();
                $this->disable();