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

chore: remove 'no-cache' from API requests #2538

Merged
merged 5 commits into from
Jul 15, 2024
Merged

Conversation

tomiir
Copy link
Collaborator

@tomiir tomiir commented Jul 12, 2024

Description

Remove no-cache option from FetchUtil so requests ttl match Cache-Control headers from the api

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web3modal-gallery ✅ Ready (Inspect) Visit Preview Jul 12, 2024 9:12pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Jul 12, 2024 9:12pm

@@ -52,7 +52,8 @@ export const TransactionsController = {
account: accountAddress,
projectId,
cursor: state.next,
onramp
onramp,
cache: onramp === 'coinbase' ? 'no-cache' : 'default'
Copy link
Member

@chris13524 chris13524 Jul 12, 2024

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'

Copy link
Collaborator Author

@tomiir tomiir Jul 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed 🙏

@tomiir tomiir merged commit 45c68d3 into main Jul 15, 2024
9 checks passed
@tomiir tomiir deleted the chore/remove-api-no-cache branch July 15, 2024 14:44
This was referenced Jul 17, 2024
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.

2 participants