Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Set long-lived cache duration for fonts. Closes #2162

Gabe Kangas06b799ab5c04
diff --git a/utils/utils.go b/utils/utils.go
index 4cce78d703..3201052c22 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.