From: Ori Livneh Date: Mon, 2 Nov 2015 21:36:07 +0000 (-0800) Subject: Revert "Add MediaWiki-Timestamp header to ResourceLoader requests" X-Git-Tag: 1.31.0-rc.0~9145 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=8a0cd2b04345f7513e9d5b0c763312d4b68d90db;p=lhc%2Fweb%2Fwiklou.git Revert "Add MediaWiki-Timestamp header to ResourceLoader requests" I have not had the time and wherewithal to write the follow-up code that actually uses this value. So just remove it for now. This reverts commit 3d5aca4a406424bf69016f9c7c4a94b317b62d25. Change-Id: Ice9b65f39802b55b3d4ddf801c06d1be3227fd5b --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index f7ba4d28a5..85ef3c36e1 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -802,11 +802,6 @@ class ResourceLoader implements LoggerAwareInterface { $exp = min( $maxage, $smaxage ); header( 'Expires: ' . wfTimestamp( TS_RFC2822, $exp + time() ) ); } - - // Send the current time expressed as fractional seconds since epoch, - // with microsecond precision. This helps distinguish hits from misses - // in edge caches. - header( 'MediaWiki-Timestamp: ' . microtime( true ) ); } /**