-
Notifications
You must be signed in to change notification settings - Fork 177
fix: add more reliable sources to the revalidate e2e test #600
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
Conversation
|
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.
We're on next 15 now correct? If so, fetch by default doesn't cache, so I don't think this e2e would test for the revalidate since the amz-id would be unique on each request.
yeah we are on 15, forgot about the new beautiful cache behavior. however, you can see the behavior yourself too by for some reason its working as it was next 14. maybe its something im missing thats completely obvious here. need to dig more into it |
|
alright, so this one was a bit confusing at first, but it must be related to the fact #L46-L54 made me think this route is not SSG. since so each visit to therefor we need to add this made me realize tho, should we maybe rework this a bit? |
That's not the point of this test. We test that it revalidate the page not the fetch cache. We may want to add a new e2e test to test the fetch cache behavior, but it's likely broken again in Next 15. |
alright, so i guess i can just keep the code as it is for now, and in a future PR add another one for the fetch cache. |
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.
LGTM Thanks
This PR adds more reliable sources to the fetches in
revalidateTag.test.tse2e