From 57c9bbbb51234d0e6f7d6d9578b4f86c0a945a0a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 22 Jan 2023 22:27:27 -0800 Subject: [PATCH] Do not cache HTML pages. Closes #2613 --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index a8c6da378..752baffce 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -199,7 +199,7 @@ func GetCacheDurationSecondsForPath(filePath string) int { return 0 } else if fileExtension == ".jpg" || fileExtension == ".png" || fileExtension == ".gif" || fileExtension == ".svg" { return 60 * 60 * 24 * defaultDaysCached - } else if fileExtension == ".html" { + } else if fileExtension == ".html" || filename == "/" || fileExtension == "" { return 0 }