Skip to content

Commit

Permalink
Merge pull request #23 from Clever/SEC-436-add-cache-control-to-assets
Browse files Browse the repository at this point in the history
Adds cache-control header to assets uploaded to s3
  • Loading branch information
alsmola authored Mar 15, 2017
2 parents c24e138 + b5382f9 commit 11af8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circleci/s3-upload
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 11af8da

Please sign in to comment.