Merge pull request #5731 from SvenDowideit/reduce-cache-max-age

reduce cache time to 1 hours so future docs releases update the cloudfront caches faster
This commit is contained in:
O.S. Tezer 2014-05-12 17:05:55 +01:00
commit 0f88dbd744

View file

@ -57,7 +57,7 @@ upload_current_documentation() {
echo " to $dst"
echo
#s3cmd --recursive --follow-symlinks --preserve --acl-public sync "$src" "$dst"
aws s3 sync --acl public-read --exclude "*.rej" --exclude "*.rst" --exclude "*.orig" --exclude "*.py" "$src" "$dst"
aws s3 sync --cache-control "max-age=3600" --acl public-read --exclude "*.rej" --exclude "*.rst" --exclude "*.orig" --exclude "*.py" "$src" "$dst"
}
setup_s3