From 64f67af2b2bab7c9d3b4458b194c10f7428bf257 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Mon, 26 Jan 2015 21:26:38 +1000 Subject: [PATCH] set the content-type for the search_content.json.gz Signed-off-by: Sven Dowideit Docker-DCO-1.1-Signed-off-by: Sven Dowideit (github: SvenDowideit) --- docs/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/release.sh b/docs/release.sh index 16bd759479..9f51e0296f 100755 --- a/docs/release.sh +++ b/docs/release.sh @@ -91,7 +91,6 @@ upload_current_documentation() { echo " to $dst" echo #s3cmd --recursive --follow-symlinks --preserve --acl-public sync "$src" "$dst" - #aws s3 cp --profile $BUCKET --cache-control "max-age=3600" --acl public-read "site/search_content.json" "$dst" # a really complicated way to send only the files we want # if there are too many in any one set, aws s3 sync seems to fall over with 2 files to go @@ -103,6 +102,9 @@ upload_current_documentation() { echo "$run" echo "=======================" $run + + # Make sure the search_content.json.gz file has the right content-encoding + aws s3 cp --profile $BUCKET --cache-control "max-age=3600" --content-encoding="gzip" --acl public-read "site/search_content.json.gz" "$dst" } invalidate_cache() {