You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nextjs incremental static rendering causes cached trace id, leading to merged client-side transactions from different users/requests #18176
We have a route with incremental static rendering where this issue occurs.
The app/(static)/go/[slug]/[[...share]]/page.tsx looks like this:
// both of these also need to set for Incremental Static Regeneration...// https://github.com/vercel/next.js/discussions/57961#discussioncomment-8491488exportconstdynamicParams=true;exportconstgenerateStaticParams=async()=>[];exportasyncfunctiongenerateMetadata(props: {params: Promise<{slug: string;share?: string[]}>;}){constparams=awaitprops.params;return{title: params.slug,};}// Note: this is a server-side component, and doesn't require authexportdefaultasyncfunctionPage(props: {params: Promise<{slug: string;share?: string[]}>;}){return(<>helloworld</>);}
Steps to Reproduce
Do a production build with a page like that.
Load a url that hits that page
refresh multiple times and you'll get the same trace id across requests
Expected Result
I'd expect incremental static page to not have a trace id in the cached output, and to only see client-side transaction data for these routes.
Actual Result
We get a bunch of erroneous trace timings for these incremental static routes because of the pageloads getting merged into one trace.
Additional Context
It appears that this isn't an issue for normal static pages that are built during the build phase.
I think this PR may be closely related to the issue.
I tried various ways to work around this, but I couldn't find a configuration flag to actually prevent injection of the meta tags by default.
Activity
linear commentedon Nov 12, 2025
JS-1152
logaretm commentedon Nov 12, 2025
Managed to reproduce it, I will dig further to see if it is isolated to 15+webpack or not
github-actions commentedon Nov 19, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #18192, which was included in the 10.26.0 release.
test(e2e): Add pageload connection test for cache component apps (#24741