[MM-56651] fix: set cache duration (#26338)

* fix: set cache duration

* fix: extra 0
This commit is contained in:
Dahlton S 2024-03-05 12:19:26 -05:00 committed by GitHub
parent eaaf75a232
commit fd713ae9bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {