r10471 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10470‎ | r10471 | r10472 >
Date:07:53, 13 August 2005
Author:timstarling
Status:old
Tags:
Comment:
Suppressed file not found warning, removed unnecessary cache suppression header
Modified paths:
  • /trunk/phase3/includes/StreamFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/StreamFile.php
@@ -4,7 +4,7 @@
55 /** */
66 function wfStreamFile( $fname ) {
77 global $wgSquidMaxage;
8 - $stat = stat( $fname );
 8+ $stat = @stat( $fname );
99 if ( !$stat ) {
1010 header( 'HTTP/1.0 404 Not Found' );
1111 echo "<html><body>
@@ -15,7 +15,6 @@
1616 return;
1717 }
1818
19 - header( "Cache-Control: s-maxage=$wgSquidMaxage, must-revalidate, max-age=0" );
2019 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', $stat['mtime'] ) . ' GMT' );
2120
2221 if ( !empty( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) {

Status & tagging log