From: Roan Kattouw Date: Sat, 12 Feb 2011 23:41:28 +0000 (+0000) Subject: Never serve 304s from RL in debug mode. This causes inadvertent caching of debug... X-Git-Tag: 1.31.0-rc.0~32014 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=14c43476c668f32720ca51abb7def8a648c6fee2;p=lhc%2Fweb%2Fwiklou.git Never serve 304s from RL in debug mode. This causes inadvertent caching of debug responses --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 3d09b26d7a..3df06e2682 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -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