From d3bac2f8bb4cf6af45451c044a599758598aa6f1 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Mon, 9 Mar 2020 12:13:50 +0100 Subject: [PATCH] BUG: App index.html cached on production (#642) * remove caching for webapp index.html * keep --delete flag --- config/travis/deploy_release.sh | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/travis/deploy_release.sh b/config/travis/deploy_release.sh index 6c6c7069..1299e76c 100755 --- a/config/travis/deploy_release.sh +++ b/config/travis/deploy_release.sh @@ -18,5 +18,7 @@ then REVIEW_RELEASE_FOLDER="$REPO_NAME_ALPHANUMERIC/$TRAVIS_TAG_ALPHANUMERIC" # Deploy safe-team release project - aws s3 sync build_webpack s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete + aws s3 sync build_webpack s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete --exclude "*.html" --exclude "/page-data" --cache-control max-age=31536000,public + + aws s3 sync build_webpack s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html fi diff --git a/package.json b/package.json index 6f183dd6..75c85dc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "safe-react", - "version": "1.7.5", + "version": "1.7.6", "description": "Allowing crypto users manage funds in a safer way", "homepage": "https://github.com/gnosis/safe-react#readme", "bugs": {