mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
Add preview gif to the short short cache time
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user