From c7f8899b82491e586bcb9d9fb6cb2f83ffa4e7f0 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 3 Sep 2021 21:37:29 -0700 Subject: [PATCH] Add preview gif to the short short cache time --- utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index bce2b3660..06756b359 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -168,8 +168,8 @@ func GetCacheDurationSecondsForPath(filePath string) int { filename := path.Base(filePath) fileExtension := path.Ext(filePath) - if filename == "thumbnail.jpg" { - // Thumbnails re-generate during live + if filename == "thumbnail.jpg" || filename == "preview.gif" { + // Thumbnails & preview gif re-generate during live return 20 } else if fileExtension == ".js" || fileExtension == ".css" { // Cache javascript & CSS