From: Niklas Laxström Date: Sat, 2 Oct 2010 16:54:53 +0000 (+0000) Subject: Fix logic error in IMS check introduced in r72940. Was sending 304 even for modified... X-Git-Tag: 1.31.0-rc.0~34674 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=08b4de8037e4ddfffe16add901e2a96ad8766427;p=lhc%2Fweb%2Fwiklou.git Fix logic error in IMS check introduced in r72940. Was sending 304 even for modified files --- 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__ );