[Media] Add cache control directive to all files served

This commit is contained in:
Hugo Sales 2020-09-05 21:18:21 +00:00 committed by Hugo Sales
parent 6b1689e1df
commit 9865798766
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -74,6 +74,7 @@ abstract class Utils
'Content-Description' => 'File Transfer', 'Content-Description' => 'File Transfer',
'Content-Type' => $mimetype, 'Content-Type' => $mimetype,
'Content-Disposition' => HeaderUtils::makeDisposition($disposition, $output_filename ?: _m('untitled')), 'Content-Disposition' => HeaderUtils::makeDisposition($disposition, $output_filename ?: _m('untitled')),
'Cache-Control' => 'public',
], ],
$public = true, $public = true,
$disposition = null, $disposition = null,