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
Deploy the application to Vercel (or visit the link below).
Visit the URL https://unstable-cache-repro.vercel.app/?key=bar&extra=english. The utcTime will remain static as you refresh the page.
Now add an unrelated non-english search param. https://unstable-cache-repro.vercel.app/?key=bar&extra=中國人. Notice how the utcTime is increasing for every page refresh.
Current vs. Expected behavior
The repro does not consume the extra searchParam anywhere in the application, yet when any non english searchParam is in the URL it can break unstable_cache.
Looking at the vercel request logs, it's as if there is no attempt to visit the vercel data cache. Perhaps the unstable_cache is bailing and just invoking the callback on every request when this condition occurs.
Provide environment information
Node.js v20.18.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.2.0: Fri Dec 6 18:40:14 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8103
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 20.18.0
npm: 10.8.2
Yarn: 3.2.3
pnpm: N/A
Relevant Packages:
next: 14.2.24 // An outdated version detected (latest is 15.1.7), upgrade is highly recommended!
eslint-config-next: N/A
react: 18.3.1
react-dom: 18.3.1
typescript: 5.7.3
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
I have tested the following next.js versions.
14.1.4 - bug NOT present
14.2.15 - bug present
14.2.24 - bug present
15.1.7 - bug present
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/cygnetdigital/next-unstable-cache-bug-repro
To Reproduce
https://unstable-cache-repro.vercel.app/?key=bar&extra=english
. TheutcTime
will remain static as you refresh the page.https://unstable-cache-repro.vercel.app/?key=bar&extra=中國人
. Notice how theutcTime
is increasing for every page refresh.Current vs. Expected behavior
The repro does not consume the
extra
searchParam anywhere in the application, yet when any non english searchParam is in the URL it can breakunstable_cache
.Looking at the vercel request logs, it's as if there is no attempt to visit the vercel data cache. Perhaps the
unstable_cache
is bailing and just invoking the callback on every request when this condition occurs.Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
I have tested the following next.js versions.
14.1.4
- bug NOT present14.2.15
- bug present14.2.24
- bug present15.1.7
- bug presentThe text was updated successfully, but these errors were encountered: