Skip to content

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

Increase cache time of javascript and css since the files are hashed

Gabe Kangas822d6fd4e2ea
diff --git a/utils/utils.go b/utils/utils.go
index 3201052c22..e2a84fcc64 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -186,7 +186,7 @@ func GetCacheDurationSecondsForPath(filePath string) int {
return 20
} else if fileExtension == ".js" || fileExtension == ".css" {
// Cache javascript & CSS
- return 60 * 60 * 3
+ return 60 * 60 * 24 * 7
} 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