Backport Last-Modified performance logging for Media Viewer

Bug: T78767
Change-Id: I33c0aa1a618c7d4b9fd1da3d285ed3e582c9fd9f