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

This commit is contained in:
Gabe Kangas 2022-10-03 21:43:00 -07:00
parent 89786ad4f8
commit cb65dde46a
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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