fix: avoid duplicate cache-control header (#1048)
This commit is contained in:
parent
fd864acab1
commit
d3696cd0aa
@ -135,7 +135,7 @@ func (s *S3Storage) Save(filePath string, retryCount int) (string, error) {
|
|||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
maxAgeSeconds := utils.GetCacheDurationSecondsForPath(filePath)
|
maxAgeSeconds := utils.GetCacheDurationSecondsForPath(filePath)
|
||||||
cacheControlHeader := fmt.Sprintf("Cache-Control: max-age=%d", maxAgeSeconds)
|
cacheControlHeader := fmt.Sprintf("max-age=%d", maxAgeSeconds)
|
||||||
uploadInput := &s3manager.UploadInput{
|
uploadInput := &s3manager.UploadInput{
|
||||||
Bucket: aws.String(s.s3Bucket), // Bucket to be used
|
Bucket: aws.String(s.s3Bucket), // Bucket to be used
|
||||||
Key: aws.String(filePath), // Name of the file to be saved
|
Key: aws.String(filePath), // Name of the file to be saved
|
||||||
|
Loading…
x
Reference in New Issue
Block a user