Skip to content

chore: shorten tokenlist CDN cache and invalidate it after upload - #1948

Open
hurricanenara wants to merge 1 commit into
masterfrom
chore/tokenlist-cdn-cache
Open

chore: shorten tokenlist CDN cache and invalidate it after upload#1948
hurricanenara wants to merge 1 commit into
masterfrom
chore/tokenlist-cdn-cache

Conversation

@hurricanenara

@hurricanenara hurricanenara commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
CI-only change to cache headers and an optional CloudFront invalidation; no application auth or data-path changes, though enabling the step requires correct IAM and repo vars to avoid failed runs.

Overview
Updates the Generate Uniswap Token List workflow so fresh token merges reach downstream consumers (e.g. tokens API polling every ~20 minutes) sooner.

The S3 upload now sets Cache-Control: max-age=300 (was 3600), shortening how long the CDN may serve a stale copy without an explicit purge.

A new Invalidate CDN cache step runs aws cloudfront create-invalidation for /${{ env.S3_PATH }} when the repo variable STATIC_CF_DISTRIBUTION_ID is set; otherwise it is skipped until that variable and cloudfront:CreateInvalidation on the S3 role are configured.

Reviewed by Cursor Bugbot for commit 0724336. Bugbot is set up for automated code reviews on this repo. Configure here.

@hurricanenara
hurricanenara requested review from a team and MRabenda as code owners September 8, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant