Skip to content

Commit

Permalink
[RUMF-793] tweak the cache-control header (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer authored Dec 10, 2020
1 parent c5d629d commit 9cba62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case "${datacenter}" in
;;
esac

BROWSER_CACHE=900
CACHE_CONTROL='max-age=900, s-maxage=60, stale-while-revalidate=31536000'
LOGS_BUNDLE_PATH="packages/logs/bundle"
RUM_BUNDLE_PATH="packages/rum/bundle"
declare -A paths
Expand All @@ -57,7 +57,7 @@ upload-to-s3() {
assume-role "build-stable-browser-agent-artifacts-s3-write"
for file_name in ${LOGS_FILE_NAME} ${RUM_FILE_NAME}; do
echo "Upload ${file_name}"
aws s3 cp --cache-control max-age=${BROWSER_CACHE} ${paths[${file_name}]} s3://${BUCKET_NAME}/${file_name};
aws s3 cp --cache-control "$CACHE_CONTROL" ${paths[${file_name}]} s3://${BUCKET_NAME}/${file_name};
done
}

Expand Down

0 comments on commit 9cba62e

Please sign in to comment.