From b5382f9635704ad4b91727de4f113ed62b08e5b2 Mon Sep 17 00:00:00 2001 From: Alex Smolen Date: Mon, 13 Mar 2017 11:17:07 -0700 Subject: [PATCH] Adds cache-control header to assets uploaded to s3 --- circleci/s3-upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circleci/s3-upload b/circleci/s3-upload index 709a60f..9262403 100755 --- a/circleci/s3-upload +++ b/circleci/s3-upload @@ -31,4 +31,4 @@ pip install awscli echo "Uploading files to s3..." echo "\tSource: $SOURCE_DIR" echo "\tDesination: $S3_BUCKET_URL" -aws s3 cp $SOURCE_DIR $S3_BUCKET_URL --recursive --acl "private" --region "us-east-1" +aws s3 cp $SOURCE_DIR $S3_BUCKET_URL --recursive --acl "private" --region "us-east-1" --cache-control "max-age=31536000"