diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2006-11-01 11:21:09 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2006-11-01 11:21:09 +0000 |
commit | 41dd43d18eb769d43633442b21147337d1ddddf3 (patch) | |
tree | a9c4767eca0430f81e3adaa5629b7987a037ef62 /includes/StreamFile.php | |
parent | 554b5a0091cb9a5a1b5f008261273ea2a9937775 (diff) | |
download | mediawikicore-41dd43d18eb769d43633442b21147337d1ddddf3.tar.gz mediawikicore-41dd43d18eb769d43633442b21147337d1ddddf3.zip |
don't cache error pages
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/17341
Diffstat (limited to 'includes/StreamFile.php')
-rw-r--r-- | includes/StreamFile.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 81538a846eef..6f0f6b56985b 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -6,6 +6,7 @@ function wfStreamFile( $fname ) { $stat = @stat( $fname ); if ( !$stat ) { header( 'HTTP/1.0 404 Not Found' ); + header( 'Cache-Control: no-cache' ); $encFile = htmlspecialchars( $fname ); $encScript = htmlspecialchars( $_SERVER['SCRIPT_NAME'] ); echo "<html><body> |