don't cache error pages
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 1 Nov 2006 11:21:09 +0000 (11:21 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 1 Nov 2006 11:21:09 +0000 (11:21 +0000)
includes/StreamFile.php

index 81538a8..6f0f6b5 100644 (file)
@@ -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>