From fd713ae9bb49fee98309c2c378adb7bb91cb13ee Mon Sep 17 00:00:00 2001 From: Dahlton S <41805754+Linkinlog@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:19:26 -0500 Subject: [PATCH] [MM-56651] fix: set cache duration (#26338) * fix: set cache duration * fix: extra 0 --- server/platform/shared/web/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/platform/shared/web/files.go b/server/platform/shared/web/files.go index 46a2e2c587..ea5ccaedda 100644 --- a/server/platform/shared/web/files.go +++ b/server/platform/shared/web/files.go @@ -35,7 +35,7 @@ var MediaContentTypes = [...]string{ } func WriteFileResponse(filename string, contentType string, contentSize int64, lastModification time.Time, webserverMode string, fileReader io.ReadSeeker, forceDownload bool, w http.ResponseWriter, r *http.Request) { - w.Header().Set("Cache-Control", "private, no-cache") + w.Header().Set("Cache-Control", "private, max-age=86400") w.Header().Set("X-Content-Type-Options", "nosniff") if contentSize > 0 {