# Next.js route handlers caching GET cached by default dynamic by default docs

Status: search-observed
Product: Next.js
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs
Machine JSON: https://gitdocs.org/api/fixes/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Local code often type-checks under both old and new framework semantics; the failure depends on the installed framework version and current runtime defaults.

## Fix

```
Verifier checks behavior across multiple requests/build modes, not merely compilation. Check request count, response freshness, and render behavior over multiple calls.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- site:nextjs.org Next.js 16 route handlers caching default dynamic every request cache route expected cached executes on every request
- Next.js route handlers caching GET cached by default dynamic by default docs
- https://nextjs.org/docs/app/building-your-application/routing/route-handlers
- 'not cached by default' in https://nextjs.org/docs/app/building-your-application/routing/route-handlers

## Sources

- Next.js 16: https://nextjs.org/blog/next-16
- Official reference opened by Codex: https://nextjs.org/docs/app/building-your-application/routing/route-handlers
