Skip to content

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

Add preview gif to the short short cache time

Gabe Kangas2f7c206d9b46
diff --git a/utils/utils.go b/utils/utils.go
index bce2b3660d..06756b3591 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -168,8 +168,8 @@ func GetCacheDurationSecondsForPath(filePath string) int {
filename := path.Base(filePath)
fileExtension := path.Ext(filePath)
- if filename == "thumbnail.jpg" {
- // Thumbnails re-generate during live
+ if filename == "thumbnail.jpg" || filename == "preview.gif" {
+ // Thumbnails & preview gif re-generate during live
return 20
} else if fileExtension == ".js" || fileExtension == ".css" {
// Cache javascript & CSS