unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

ISR route in dev mode #2624

Open manniL opened 2 months ago

manniL commented 2 months ago

Environment

Stackblitz

Reproduction

  1. Open the StackBlitz
  2. Refresh the page
  3. See that the date changes and ISR-like behavior ("cached" route) is not the case

Describe the bug

When using ISR in dev mode, I'd expect the route to behave like "static"/like a cached route instead of not being cached at all, to mimic the ISR rule in prod as good as possible (or even better, having a "native" ISR feature in the future).

Right now, the ISR page is refreshing and not cached at all during dev mode, possibly confusing people if ISR is behaving correctly

Additional context

No response

Logs

No response