Closed kay-is closed 1 year ago
hang on, the sdk always uses post. I'm confused now why the pipeline would make a difference
Ah, maybe it also caches with POST, but since the Request looks different with the cachebuster, it misses.
It's on my to-do list for next week
We fixed this recently, please upgrade to latest
When using the new app router of Next 13, GET requests will cache every response by default.
https://beta.nextjs.org/docs/data-fetching/fetching#static-data-fetching
My quick fix for this is to either use the Upstash Redis REST API, or to use a pipeline with the SDK and throw in a
p.set("cacheBuster", Math.random())
, to force the SDK to use a POST request.I had the same issue with the Kafka SDK.