Cache Test

Both timestamps below are frozen while served from cache. Enable NEXT_PRIVATE_DEBUG_CACHE=1 in your env to see cache hits in the server logs.

ISR — page-level cache

revalidate: 30s

The page is statically generated and cached in Redis. After 30s the next request triggers a background regeneration (stale-while-revalidate).

page rendered at 2026-03-04T11:11:42.028Z

unstable_cache — function-level cache

revalidate: 15s · tag: cache-test

An independent cache entry stored in Redis under the key cache-test-data. It has its own TTL and can be invalidated via its tag without touching the page cache.

cached at 2026-03-04T11:11:42.031Z
random value 0.99645562

Manual revalidation

Both buttons call a server action then redirect back — the first request after revalidation still serves stale content while regeneration runs in the background. Reload once more to see fresh values.