fix: avoid duplicate cache-control header (#1048)

This commit is contained in:
Fabian Fischer 2021-05-23 22:35:05 +02:00 committed by GitHub
parent fd864acab1
commit d3696cd0aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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