video: fix caching

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-20 13:33:06 -07:00
parent f655a0051c
commit b5e324b394
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class VideoController extends GenericApiController
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); $contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
header("Content-Type: {$contentType}"); header("Content-Type: {$contentType}");
if (str_ends_with($profile, 'mov')) { if (str_ends_with($profile, 'mp4')) {
// cache full video 24 hours // cache full video 24 hours
header('Cache-Control: max-age=86400, public'); header('Cache-Control: max-age=86400, public');
} else { } else {