0

Add preview gif to the short short cache time

This commit is contained in:
Gabe Kangas 2021-09-03 21:37:29 -07:00
parent 31dbdb8746
commit c7f8899b82

View File

@ -168,8 +168,8 @@ func GetCacheDurationSecondsForPath(filePath string) int {
filename := path.Base(filePath) filename := path.Base(filePath)
fileExtension := path.Ext(filePath) fileExtension := path.Ext(filePath)
if filename == "thumbnail.jpg" { if filename == "thumbnail.jpg" || filename == "preview.gif" {
// Thumbnails re-generate during live // Thumbnails & preview gif re-generate during live
return 20 return 20
} else if fileExtension == ".js" || fileExtension == ".css" { } else if fileExtension == ".js" || fileExtension == ".css" {
// Cache javascript & CSS // Cache javascript & CSS