Never serve 304s from RL in debug mode. This causes inadvertent caching of debug...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 12 Feb 2011 23:41:28 +0000 (23:41 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 12 Feb 2011 23:41:28 +0000 (23:41 +0000)
includes/resourceloader/ResourceLoader.php

index 3d09b26..3df06e2 100644 (file)
@@ -381,7 +381,8 @@ class ResourceLoader {
                // Some clients send "timestamp;length=123". Strip the part after the first ';'
                // so we get a valid timestamp.
                $ims = $context->getRequest()->getHeader( 'If-Modified-Since' );
-               if ( $ims !== false ) {
+               // Never send 304s in debug mode
+               if ( $ims !== false && !$context->getDebug() ) {
                        $imsTS = strtok( $ims, ';' );
                        if ( $mtime <= wfTimestamp( TS_UNIX, $imsTS ) ) {
                                // There's another bug in ob_gzhandler (see also the comment at