Next.js run time logs not showing #6812
Answered
by
versecafe
kennyegun24
asked this question in
Account Issue
-
Beta Was this translation helpful? Give feedback.
Answered by
versecafe
May 12, 2024
Replies: 2 comments 2 replies
-
@kennyegun24 Can you share your project & the repository? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@kennyegun24 you're making a GET request with no param changes so it should be cached by default in production, you can try something like export const dynamic = 'force-dynamic'; in the routes you want to always rerun or instead use cache headers like this to have set revalidation time {
"Cache-Control": "max-age=300, s-maxage=300, stale-while-revalidate",
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kennyegun24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kennyegun24 you're making a GET request with no param changes so it should be cached by default in production, you can try something like
in the routes you want to always rerun or instead use cache headers like this to have set revalidation time