From 92800241d7fb4e1941a43fd306d5924579344707 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Fri, 25 May 2018 14:37:25 -0400 Subject: [PATCH] Setting cache-control header for service-worker.js file --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e29f2f..fe8a0d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,6 +42,7 @@ jobs: command: | sudo apt-get -y -qq install awscli aws s3 sync build s3://$DEPLOY_BUCKET/ --delete + aws s3api copy-object --copy-source $DEPLOY_BUCKET/service-worker.js --bucket $DEPLOY_BUCKET --key service-worker.js --metadata-directive REPLACE --cache-control "max-age=0" workflows: version: 2