use browser cache for pictures (#28179)
* use browser cache for pictures * test * Update phpstan.yml * Update phpstan.yml
This commit is contained in:
parent
a68f6ed0d1
commit
69a766b300
1 changed files with 5 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue