From 02090f640135f3625a8ca99fc74b50151f8926fa Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 28 Aug 2023 16:11:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E7=9A=84=E8=A7=A3=E6=9E=90jwtToke?= =?UTF-8?q?n=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/file/upload.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/file/upload.go b/utils/file/upload.go index af459ae1..5108daea 100644 --- a/utils/file/upload.go +++ b/utils/file/upload.go @@ -102,9 +102,9 @@ func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, er // 创建S3对象存储请求 s3req, _ = svc.PutObjectRequest( &s3.PutObjectInput{ - Bucket: bucketName, - Key: &resourceId, - // CacheControl: aws.String("no-cache, must-revalidate"), + Bucket: bucketName, + Key: &resourceId, + CacheControl: aws.String("no-cache, must-revalidate"), }, ) @@ -227,9 +227,9 @@ func (upload *Upload) UploadFileByByte(req *UploadBaseReq) (*UploadBaseRes, erro // 创建S3对象存储请求 s3req, _ = svc.PutObjectRequest( &s3.PutObjectInput{ - Bucket: bucketName, - Key: &resourceId, - // CacheControl: aws.String("no-cache, must-revalidate"), + Bucket: bucketName, + Key: &resourceId, + CacheControl: aws.String("no-cache, must-revalidate"), }, )