Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ykzts
Copy link
Contributor

@ykzts ykzts commented Mar 12, 2023

In Next.js v13, fetch responses are cached, so when a similar request is sent multiple times, the first response is always returned, which is not the intended behavior. Add cache: 'no-store' to the fetch options to disable unintended caching. Since cache: 'no-store' is a standard option, it may work on other platforms as well.

@chronark
Copy link
Contributor

Thank you, I'll try it out on all the platforms

@chronark chronark merged commit 4b7b3f6 into upstash:main Mar 29, 2023
@ykzts ykzts deleted the cache-no-store branch March 29, 2023 18:47
AprilNEA added a commit to AprilNEA/AChat that referenced this pull request Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants