"Cache Reserve" with NextJs 15 project
We are trying to implement Cache Reserve for a NextJS 15 project but run into the issue that the pages are streamed, hence no content-length header is set (which is required for Cache reserve to work). It turns out that this is not as easy as I thought to implement in Nextjs: We have 500k landing pages, so we cannot generate the pages statically.
How would I best "wrap" single routes so I can attach a Content-length header that makes Cache Reserve work?
Thanks for any pointers!
1 Reply
Does anyone know this? Seems incredibly complicated?