diff --git a/MultimediaViewer.php b/MultimediaViewer.php index e42147682..9af5c0466 100644 --- a/MultimediaViewer.php +++ b/MultimediaViewer.php @@ -1063,7 +1063,7 @@ $wgResourceModules += array( $wgHooks['EventLoggingRegisterSchemas'][] = function( array &$schemas ) { $schemas += array( 'MediaViewer' => 10606177, - 'MultimediaViewerNetworkPerformance' => 10596581, + 'MultimediaViewerNetworkPerformance' => 10774577, 'MultimediaViewerDuration' => 10427980, 'MultimediaViewerAttribution' => 9758179, 'MultimediaViewerDimensions' => 10014238, diff --git a/resources/mmv/logging/mmv.logging.PerformanceLogger.js b/resources/mmv/logging/mmv.logging.PerformanceLogger.js index 2ac6e1b5c..df3fedd39 100644 --- a/resources/mmv/logging/mmv.logging.PerformanceLogger.js +++ b/resources/mmv/logging/mmv.logging.PerformanceLogger.js @@ -185,7 +185,8 @@ contentLength, xcache, xvarnish, - varnishXCache; + varnishXCache, + lastModified; if ( !request ) { return; @@ -223,6 +224,11 @@ } stats.timestamp = new Date( request.getResponseHeader( 'Date' ) ).getTime() / 1000; + + lastModified = request.getResponseHeader( 'Last-Modified' ); + if ( lastModified ) { + stats.lastModified = new Date( lastModified ).getTime() / 1000; + } }; /**