mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Set long-lived cache duration for fonts. Closes #2162
This commit is contained in:
@ -187,7 +187,7 @@ func GetCacheDurationSecondsForPath(filePath string) int {
|
|||||||
} else if fileExtension == ".js" || fileExtension == ".css" {
|
} else if fileExtension == ".js" || fileExtension == ".css" {
|
||||||
// Cache javascript & CSS
|
// Cache javascript & CSS
|
||||||
return 60 * 60 * 3
|
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.
|
// Cache video segments as long as you want. They can't change.
|
||||||
// This matters most for local hosting of segments for recordings
|
// This matters most for local hosting of segments for recordings
|
||||||
// and not for live or 3rd party storage.
|
// and not for live or 3rd party storage.
|
||||||
|
|||||||
Reference in New Issue
Block a user