From cb65dde46aa71f222e203e5d9d16eafc4d3192ee Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 3 Oct 2022 21:43:00 -0700 Subject: [PATCH] Increase cache time of javascript and css since the files are hashed --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 3201052c2..e2a84fcc6 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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