Index: branches/REL1_5/phase3/includes/StreamFile.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | /** */ |
6 | 6 | function wfStreamFile( $fname ) { |
7 | 7 | global $wgSquidMaxage; |
8 | | - $stat = stat( $fname ); |
| 8 | + $stat = @stat( $fname ); |
9 | 9 | if ( !$stat ) { |
10 | 10 | header( 'HTTP/1.0 404 Not Found' ); |
11 | 11 | echo "<html><body> |
— | — | @@ -15,7 +15,6 @@ |
16 | 16 | return; |
17 | 17 | } |
18 | 18 | |
19 | | - header( "Cache-Control: s-maxage=$wgSquidMaxage, must-revalidate, max-age=0" ); |
20 | 19 | header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $stat['mtime'] ) . ' GMT' ); |
21 | 20 | |
22 | 21 | if ( !empty( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) { |