http://www.mediawiki.org/wiki/Special:Code/MediaWiki/74146

Revision: 74146
Author:   nikerabbit
Date:     2010-10-02 16:54:53 +0000 (Sat, 02 Oct 2010)

Log Message:
-----------
Fix logic error in IMS check introduced in r72940. Was sending 304 even for 
modified files

Modified Paths:
--------------
    trunk/phase3/includes/ResourceLoader.php

Modified: trunk/phase3/includes/ResourceLoader.php
===================================================================
--- trunk/phase3/includes/ResourceLoader.php    2010-10-02 16:11:44 UTC (rev 
74145)
+++ trunk/phase3/includes/ResourceLoader.php    2010-10-02 16:54:53 UTC (rev 
74146)
@@ -293,7 +293,7 @@
 
                // 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__ );



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to