Skip to content

Commit

Permalink
Add cache control in aws s3
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 16, 2024
1 parent 8471fa7 commit 236001e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 236001e

Please sign in to comment.