| 1 | // Short revalidate window: after it lapses, the next hit serves STALE and |
| 2 | // enqueues a background revalidation through the Durable Object queue |
| 3 | // (`NEXT_CACHE_DO_QUEUE`), which re-renders via `WORKER_SELF_REFERENCE` |
| 4 | // and writes the fresh payload back to KV. |
| 5 | export const revalidate = 2; |
| 6 | |
| 7 | export default function FastIsr() { |
| 8 | return ( |
| 9 | <main> |
| 10 | <h1>FAST_ISR_FIXTURE_PAGE</h1> |
| 11 | <p>fast-isr-stamp:{Date.now()}</p> |
| 12 | </main> |
| 13 | ); |
| 14 | } |