Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cloudflare-kv): use min ttl of 60 seconds #496

Merged
merged 5 commits into from
Oct 13, 2024
Merged

fix(cloudflare-kv): use min ttl of 60 seconds #496

merged 5 commits into from
Oct 13, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Oct 13, 2024

(credits to @atinux for noticing this)

According to cloudflare docs, the minimum amount of ttl is 60 seconds. This PR adds a fix to make sure if ttl is set, it is a minimum of 60 seconds (configurable via minTTL if needed) instead of throwing error in production.

@pi0 pi0 self-assigned this Oct 13, 2024
Copy link

cloudflare-workers-and-pages bot commented Oct 13, 2024

Deploying unstorage with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec42213
Status: ✅  Deploy successful!
Preview URL: https://67e2e80b.unstorage.pages.dev
Branch Preview URL: https://fix-cf-min-ttl.unstorage.pages.dev

View logs

@pi0 pi0 merged commit 71cbaf6 into main Oct 13, 2024
3 checks passed
@pi0 pi0 deleted the fix/cf-min-ttl branch October 13, 2024 09:16
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