Browse Source

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

pull/2077/head
Gabe Kangas 3 years ago
parent
commit
555a289840
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 2
      utils/utils.go

2
utils/utils.go

@ -187,7 +187,7 @@ func GetCacheDurationSecondsForPath(filePath string) int { @@ -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.

Loading…
Cancel
Save