Next.js Discord

Discord Forum

Nextjs Image Cache always returning Stale after TTL param

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Avatar
Spectacled bearOP
I have a NextJS app which receives some images URLs from an API. I have setted the minimumCacheTTL property in next.config.mjs file to a value of 600 (10 minutes)

The problem I am receiving is the following one:

When I deploy my App in Vercel the Cache returns MISS and it gets the Images from their URL, this is working as expected
After this, all requests return HIT if time < minimumCacheTTL, this is also working as expected
The problem is that after minimumCacheTTL it returns STALE but never updates the image, I mean forever I get STALE

Please let me know if any of you know how to solve this issue
Image

0 Replies