From b5e324b394fe8baf6342e1b908f27363b7c295f2 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 20 Oct 2023 13:33:06 -0700 Subject: [PATCH] video: fix caching Signed-off-by: Varun Patil --- lib/Controller/VideoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index d211f949..12f2f6bd 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -281,7 +281,7 @@ class VideoController extends GenericApiController $contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); header("Content-Type: {$contentType}"); - if (str_ends_with($profile, 'mov')) { + if (str_ends_with($profile, 'mp4')) { // cache full video 24 hours header('Cache-Control: max-age=86400, public'); } else {