From d3696cd0aa35c7365d654d3126b7675aad2e9e04 Mon Sep 17 00:00:00 2001 From: Fabian Fischer Date: Sun, 23 May 2021 22:35:05 +0200 Subject: [PATCH] fix: avoid duplicate cache-control header (#1048) --- core/storageproviders/s3Storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/storageproviders/s3Storage.go b/core/storageproviders/s3Storage.go index 6d5d2fc17..6edff0d92 100644 --- a/core/storageproviders/s3Storage.go +++ b/core/storageproviders/s3Storage.go @@ -135,7 +135,7 @@ func (s *S3Storage) Save(filePath string, retryCount int) (string, error) { defer file.Close() maxAgeSeconds := utils.GetCacheDurationSecondsForPath(filePath) - cacheControlHeader := fmt.Sprintf("Cache-Control: max-age=%d", maxAgeSeconds) + cacheControlHeader := fmt.Sprintf("max-age=%d", maxAgeSeconds) uploadInput := &s3manager.UploadInput{ Bucket: aws.String(s.s3Bucket), // Bucket to be used Key: aws.String(filePath), // Name of the file to be saved