From ec43cb0ed01afa5ff558f5c29c92cbb5eb462ee5 Mon Sep 17 00:00:00 2001 From: Isaac Hollander McCreery Date: Thu, 8 Oct 2015 11:29:18 -0700 Subject: [PATCH] Make latest.txt files non-cacheable --- build/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/common.sh b/build/common.sh index 8ceb60418fd..e3659b29729 100755 --- a/build/common.sh +++ b/build/common.sh @@ -1177,7 +1177,9 @@ function kube::release::gcs::publish() { local contents if [[ ${KUBE_GCS_MAKE_PUBLIC} =~ ^[yY]$ ]]; then + kube::log::status "Making uploaded version file public and non-cacheable." gsutil acl ch -R -g all:R "${publish_file_dst}" >/dev/null 2>&1 || return 1 + gsutil setmeta -h "Cache-Control:private, max-age=0" "${publish_file_dst}" >/dev/null 2>&1 || return 1 # If public, validate public link local -r public_link="https://storage.googleapis.com/${KUBE_GCS_RELEASE_BUCKET}/${publish_file}" kube::log::status "Validating uploaded version file at ${public_link}"