Skip to content

Commit

Permalink
Add cache-control headers
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Oct 2, 2024
1 parent 560be56 commit 2f7e32b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/create-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_ENDPOINT: ${{ vars.R2_ENDPOINT }}
run: |
aws s3 sync --region="auto" --endpoint="$R2_ENDPOINT" ./out/ s3://japanese-addresses-v2/
aws s3 sync \
--cache-control="max-age=86400, s-maxage=103680, public" \
--region="auto" \
--endpoint="$R2_ENDPOINT" \
./out/ s3://japanese-addresses-v2/
# TODO: Purge Cloudflare cache

0 comments on commit 2f7e32b

Please sign in to comment.