From 41dd43d18eb769d43633442b21147337d1ddddf3 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 1 Nov 2006 11:21:09 +0000 Subject: [PATCH] don't cache error pages --- includes/StreamFile.php | 1 + 1 file changed, 1 insertion(+) 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 " -- 2.20.1