From: Tim Starling Date: Wed, 1 Nov 2006 11:21:09 +0000 (+0000) Subject: don't cache error pages X-Git-Tag: 1.31.0-rc.0~55329 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=41dd43d18eb769d43633442b21147337d1ddddf3;p=lhc%2Fweb%2Fwiklou.git don't cache error pages --- diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 81538a846e..6f0f6b5698 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 "