use browser cache for pictures (#28179)

* use browser cache for pictures

* test

* Update phpstan.yml

* Update phpstan.yml
This commit is contained in:
Frédéric FRANCE 2024-02-15 13:58:07 +01:00 committed by GitHub
parent a68f6ed0d1
commit 69a766b300
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9207,7 +9207,11 @@ abstract class CommonObject
$alt = $overwritetitle;
}
}
if (empty($cache) && !empty($val['label'])) {
// label is md5 of file
// use it in url to say we want to cache this version of the file
$cache = $val['label'];
}
if ($usesharelink) {
if ($val['share']) {
if (empty($maxHeight) || ($photo_vignette && $imgarray['height'] > $maxHeight)) {