We added KV because, well, people asked for it, but my personal opinion is that you should be using

We added KV because, well, people asked for it, but my personal opinion is that you should be using cache api since it aligns better with the expected behaviour of the fetch cache (e.g. being regional). And I'm also of the opinion that the eventual consistency of KV completely kills the ability for the cache to work properly because every change to the cache manifest takes 60 seconds to propagate which will mean it'll probably change every request when it shouldnt be
16 Replies
James
JamesOP•2mo ago
are you using the same next-on-pages version in both the old and new deploy?
advaith
advaith•2mo ago
probably not, it isn't a dependency in the project, and the build command is pnpm dlx @cloudflare/next-on-pages@1
James
JamesOP•2mo ago
would you be able to try a deploy with next-on-pages version from when your last deploy worked and see if that makes the difference
advaith
advaith•2mo ago
ok, it was april 5 so i'll try 1.11.0 ok it seems to work fine with next-on-pages 1.11.0 @Better James
James
JamesOP•2mo ago
that's irritating - there's been a lot of changes since then... can i be really annoying and ask if it's possible to increment the version until you get to the one that introduces the problem?
advaith
advaith•2mo ago
sure
James
JamesOP•2mo ago
thanks
advaith
advaith•2mo ago
1.11.3 works fine 1.12.0 has the error
James
JamesOP•2mo ago
:akoalathink:
No description
James
JamesOP•2mo ago
do you use the fetch cache?
advaith
advaith•2mo ago
i don't have any code for controlling caching, but data does get cached. so i assume next does? this is an app router project that has about 20 components that each do a fetch request
James
JamesOP•2mo ago
i'm thinking it's possibly something along the lines of those fetch requests might have been being cached before but one of these two fetch cache changes resulted in them not being cached either as long or at all and therefore leading to more requests happening
advaith
advaith•2mo ago
whether cached or not, there's no reason why one page would do more than ~20 subrequests 🤔
James
JamesOP•2mo ago
i agree, but that's the only thing related to those changes that would make sense
ItsWendell
ItsWendell•2mo ago
Now that cloudflare has joined OpenNext, do we get a seperate channel for that or do we keep discussions around that in next-on-pages / next channel? https://blog.cloudflare.com/builder-day-2024-announcements/#cloudflare-joins-opennext
The Cloudflare Blog
Builder Day 2024: 18 big updates to the Workers platform
To celebrate Builder Day 2024, we’re shipping 18 updates inspired by direct feedback from developers building on Cloudflare. This includes new capabilities, like running evals with AI Gateway, beta products like Queues and Vectorize graduating to GA, massive speed improvements to KV and Workers AI, pricing simplifications, and bringing key featu...
tadhglewis
tadhglewis•2mo ago
Sounds like OpenNext + Workers Static Assets will replace Pages so probably warrants a separate channel?
we plan to bridge the remaining gaps between Workers and Pages and provide ways to migrate your Pages projects to Workers.
Want results from more Discord servers?
Add your server