On enwikiMediaViewer caches most of its API calls but it does not cache calls to the `imageinfo` API. This was originally due to concerns about editors getting outdated content, but caching for a short period (say, logged out5 minutes) should still be okay, I'm seeing Media Viewer issue API requests like this one:and could decrease the load from a popular article significantly.
https://en.wikipedia.org/w/api.php?action=query&format=json&prop=imageinfo&titles=File%3AVictor_Ponta_debate_November_2014_ITN%2Ejpg&iiprop=timestamp%7Cuser%7Curl%7Csize%7Cmime%7Cmediatype%7Cextmetadata&iiextmetadatafilter=DateTime%7CDateTimeOriginal%7CObjectName%7CImageDescription%7CLicense%7CLicenseShortName%7CUsageTerms%7CLicenseUrl%7CCredit%7CArtist%7CAuthorCount%7CGPSLatitude%7CGPSLongitude%7CPermission%7CAttribution%7CAttributionRequired%7CNonFree%7CRestrictions&iiextmetadatalanguage=en
For some reason ImageInfo doesn't set a maxage parameter:
https://github.com/wikimedia/mediawiki-extensions-MultimediaViewer/blob/f7a00750623bf0c6b96ca90df1934ee77448b198/resources/mmv/mmv.js#L50
A day might be excessive for that particular call, since editors won't see their changes, but no caching at all is also extreme.
This is definitely an argument in favor of T116840----
**See also:**
* {T116840}