External resources are cacheable

This commit is contained in:
Michael 2021-06-28 13:09:00 +00:00
parent 4f95622d73
commit a1a584f444

View File

@ -283,7 +283,7 @@ class Photo
$photo['backend-class'] = ExternalResource::NAME; $photo['backend-class'] = ExternalResource::NAME;
$photo['backend-ref'] = json_encode(['url' => $url, 'uid' => $uid]); $photo['backend-ref'] = json_encode(['url' => $url, 'uid' => $uid]);
$photo['type'] = $mimetype; $photo['type'] = $mimetype;
$photo['cacheable'] = false; $photo['cacheable'] = true;
return $photo; return $photo;
} }