From 555a289840959b258f41c4424a9311602d37bcd1 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 2 Oct 2022 17:22:13 -0700 Subject: [PATCH] Set long-lived cache duration for fonts. Closes #2162 --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 4cce78d70..3201052c2 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -187,7 +187,7 @@ func GetCacheDurationSecondsForPath(filePath string) int { } else if fileExtension == ".js" || fileExtension == ".css" { // Cache javascript & CSS return 60 * 60 * 3 - } else if fileExtension == ".ts" { + } else if fileExtension == ".ts" || fileExtension == ".woff2" { // Cache video segments as long as you want. They can't change. // This matters most for local hosting of segments for recordings // and not for live or 3rd party storage.