From 03a26ae6b1184c7e9f8e8936b37fb10315f9d577 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 13 Aug 2005 07:53:16 +0000 Subject: [PATCH] Suppressed file not found warning, removed unnecessary cache suppression header --- includes/StreamFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'] ) ) { -- 2.20.1