From 72e90545454c0e014318fa3c81658e035aac58c1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 10 Jun 2009 13:00:47 +0200 Subject: applying patch to version 1.15.0 --- includes/StreamFile.php | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/StreamFile.php') diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 4abd7364..bdd2a2e5 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -48,6 +48,7 @@ function wfStreamFile( $fname, $headers = array() ) { $modsince = preg_replace( '/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE'] ); $sinceTime = strtotime( $modsince ); if ( $stat['mtime'] <= $sinceTime ) { + ini_set('zlib.output_compression', 0); header( "HTTP/1.0 304 Not Modified" ); return; } -- cgit v1.2.3-54-g00ecf