mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
a78266481b
* chore: add .worktrees/ to gitignore * feat: support `export const revalidate` on App Router GET route handlers Read the route segment config `revalidate` from route handler modules and set `Cache-Control: s-maxage=N, stale-while-revalidate` on GET responses, matching Next.js behavior. Only applies when the handler does not set its own Cache-Control header. Unskip two E2E fixme cases and add vitest coverage. * fix: guard revalidate=0 and add proper test fixtures - Skip Cache-Control injection when revalidate is 0 (means "never cache") - Add /api/custom-cache fixture that sets its own Cache-Control header - Add /api/no-cache fixture with revalidate=0 - Fix "does not override" test to use a fixture that actually sets Cache-Control - Add revalidate=0 test case