Browse Source

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

pull/1050/head
Fabian Fischer 4 years ago committed by GitHub
parent
commit
d3696cd0aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/storageproviders/s3Storage.go

2
core/storageproviders/s3Storage.go

@ -135,7 +135,7 @@ func (s *S3Storage) Save(filePath string, retryCount int) (string, error) { @@ -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

Loading…
Cancel
Save