Setting cache-control header for service-worker.js file
This commit is contained in:
parent
beb73f3e69
commit
92800241d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user