-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: remove 'no-cache' from API requests #2538
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
… it when requesting onramp txs
@@ -52,7 +52,8 @@ export const TransactionsController = { | |||
account: accountAddress, | |||
projectId, | |||
cursor: state.next, | |||
onramp | |||
onramp, | |||
cache: onramp === 'coinbase' ? 'no-cache' : 'default' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a comment explaining why would be helpful here?
Also personally I'd use undefined
instead of 'default'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed 🙏
Description
Remove
no-cache
option fromFetchUtil
so requests ttl matchCache-Control
headers from the apiType of change
Checklist