Skip to content

Commit

Permalink
Use S3 caching headers for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Aug 7, 2019
1 parent 5bbe94c commit 2086734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
virtualenv ~/sdk
source ~/sdk/bin/activate
pip install awscli --upgrade
aws s3 sync $WEBSITE_BUILD_DIR $AWS_S3_BUCKET --acl public-read
aws s3 sync $WEBSITE_BUILD_DIR $AWS_S3_BUCKET --exclude "*.html" --acl public-read --cache-control "public,max-age=15552000,s-maxage=15552000"
aws s3 sync $WEBSITE_BUILD_DIR $AWS_S3_BUCKET --exclude "*" --include "*.html" --acl public-read --cache-control "public,max-age=86400,s-maxage=86400"
aws cloudfront create-invalidation --distribution-id $AWS_CF_DISTRIBUTION --paths "/*"
Expand Down

0 comments on commit 2086734

Please sign in to comment.