From: Tim Starling Date: Sat, 13 Aug 2005 07:53:16 +0000 (+0000) Subject: Suppressed file not found warning, removed unnecessary cache suppression header X-Git-Tag: 1.6.0~2004 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=03a26ae6b1184c7e9f8e8936b37fb10315f9d577;p=lhc%2Fweb%2Fwiklou.git Suppressed file not found warning, removed unnecessary cache suppression header --- diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 3098ea876c..0c44bb9228 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -4,7 +4,7 @@ /** */ function wfStreamFile( $fname ) { global $wgSquidMaxage; - $stat = stat( $fname ); + $stat = @stat( $fname ); if ( !$stat ) { header( 'HTTP/1.0 404 Not Found' ); echo " @@ -15,7 +15,6 @@ does not.

return; } - header( "Cache-Control: s-maxage=$wgSquidMaxage, must-revalidate, max-age=0" ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $stat['mtime'] ) . ' GMT' ); if ( !empty( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) {