Skip to content

Commit

Permalink
Adding cache when uploading objects to S3 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
amarouane-ABDELHAK authored Oct 5, 2023
1 parent 3f6d27e commit d0aa1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0aa1be

Please sign in to comment.