Replies: 2 comments
-
It works for me (prod and local). |
Beta Was this translation helpful? Give feedback.
0 replies
-
It doesn't work for me too.. no matter what versions of next / @cloudflrare/next-on-pages i installed.. KV is just empty always and by speed i can determine as well that caching doesn't work |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have a brand new
next-on-pages
project and managed to deploy it. However, I'm struggling to understand how the Cache works.Let say I have an
/api/something/route.ts
, which initiate afetch('some-external-url')
Am I correct understanding that fetch will be cached using the CacheAPI? ... and if so, for how long? What is the default value for TTL?
Also, I tried to use
KV
binding and have these in mywranger.toml
file:I would expect I can then inspect what is cached inside that KV namespace... but no matter how many requests I've made, I see this namespace still empty.
So at this point, I'm not totally sure if the cache is working at all...
Thanks for your help,
Anh
Beta Was this translation helpful? Give feedback.
All reactions