From 9865798766febcca90e3e41f3136227d4c76af77 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 5 Sep 2020 21:18:21 +0000 Subject: [PATCH] [Media] Add cache control directive to all files served --- components/Media/Utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/components/Media/Utils.php b/components/Media/Utils.php index 48e3cf109e..38174c256e 100644 --- a/components/Media/Utils.php +++ b/components/Media/Utils.php @@ -74,6 +74,7 @@ abstract class Utils 'Content-Description' => 'File Transfer', 'Content-Type' => $mimetype, 'Content-Disposition' => HeaderUtils::makeDisposition($disposition, $output_filename ?: _m('untitled')), + 'Cache-Control' => 'public', ], $public = true, $disposition = null,