diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index 73d9885d7..33977b4cb 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -33,8 +33,8 @@ jobs: yarn install --frozen-lockfile && yarn build aws s3 rm s3://canopas-website-ssr-dev --recursive cd .output/server && zip canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../.. - aws s3 sync ./.output/public s3://canopas-website-ssr-dev --exclude "*.js" - aws s3 sync ./.output/public s3://canopas-website-ssr-dev --include "*.js" --content-type "application/javascript" + aws s3 sync --cache-control 'max-age=604800' --exclude *.html ./.output/public s3://canopas-website-ssr-dev + aws s3 sync ./.output/public s3://canopas-website-ssr-dev - name: Deploy cloudformation stack id: canopas-website-dev-lambda-stack-frontend