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 revalidate: false detection in app #49473

Merged
merged 3 commits into from May 8, 2023
Merged

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented May 8, 2023

When revalidate isn't defined in the tree at all and a fetch without cache/revalidate fields is done we are incorrectly marking the initial revalidate period with a time based value when it should be false. This causes pages that should be fully static to revalidate unexpectedly.

x-ref: twitter thread
x-ref: slack thread

@ijjk ijjk marked this pull request as ready for review May 8, 2023 19:37
styfle
styfle previously approved these changes May 8, 2023
huozhi
huozhi previously approved these changes May 8, 2023
@ijjk ijjk dismissed stale reviews from huozhi and styfle via 953c1ad May 8, 2023 19:52
@ijjk ijjk requested a review from a team as a code owner May 8, 2023 19:52
@ijjk ijjk merged commit 00ed2ba into vercel:canary May 8, 2023
92 of 93 checks passed
@ijjk ijjk deleted the fix/initial-revalidate branch May 8, 2023 20:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants