From 08b4de8037e4ddfffe16add901e2a96ad8766427 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 2 Oct 2010 16:54:53 +0000 Subject: [PATCH] Fix logic error in IMS check introduced in r72940. Was sending 304 even for modified files --- includes/ResourceLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ResourceLoader.php b/includes/ResourceLoader.php index 7935adab51..363b3a1918 100644 --- a/includes/ResourceLoader.php +++ b/includes/ResourceLoader.php @@ -293,7 +293,7 @@ class ResourceLoader { // If there's an If-Modified-Since header, respond with a 304 appropriately $ims = $context->getRequest()->getHeader( 'If-Modified-Since' ); - if ( $ims !== false && $mtime >= wfTimestamp( TS_UNIX, $ims ) ) { + if ( $ims !== false && $mtime <= wfTimestamp( TS_UNIX, $ims ) ) { header( 'HTTP/1.0 304 Not Modified' ); header( 'Status: 304 Not Modified' ); wfProfileOut( __METHOD__ ); -- 2.20.1