From d0aa1be94ffb57a5254068dcc2a40fe3764de75b Mon Sep 17 00:00:00 2001 From: Abdelhak Marouane <33136280+amarouane-ABDELHAK@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:51:19 -0500 Subject: [PATCH] Adding cache when uploading objects to S3 (#198) --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cd0a52a08..6673d7ab4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -122,7 +122,7 @@ jobs: - name: Deploy to S3 Production run: | - aws s3 sync ./dist s3://${{ secrets.S3_BUCKET }} --delete + aws s3 sync ./dist s3://${{ secrets.S3_BUCKET }} --cache-control max-age=604800 --delete - name: Request Invalidation to AWS Cloudfront uses: oneyedev/aws-cloudfront-invalidation@v1