forked from GNUsocial/gnu-social
[Media] Add cache control directive to all files served
This commit is contained in:
parent
922c435e28
commit
5663e5e58d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue