Browse Source

Do not cache HTML pages. Closes #2613

pull/2617/head
Gabe Kangas 3 years ago
parent
commit
57c9bbbb51
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      utils/utils.go

2
utils/utils.go

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

Loading…
Cancel
Save