Do not cache HTML pages. Closes #2613

This commit is contained in:
Gabe Kangas 2023-01-22 22:27:27 -08:00
parent f1fc3b41c7
commit 57c9bbbb51
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -199,7 +199,7 @@ func GetCacheDurationSecondsForPath(filePath string) int {
return 0 return 0
} else if fileExtension == ".jpg" || fileExtension == ".png" || fileExtension == ".gif" || fileExtension == ".svg" { } else if fileExtension == ".jpg" || fileExtension == ".png" || fileExtension == ".gif" || fileExtension == ".svg" {
return 60 * 60 * 24 * defaultDaysCached return 60 * 60 * 24 * defaultDaysCached
} else if fileExtension == ".html" { } else if fileExtension == ".html" || filename == "/" || fileExtension == "" {
return 0 return 0
} }