{
  "id": "P068",
  "slug": "next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs",
  "status": "search-observed",
  "product": "Next.js",
  "family": "Framework semantic default",
  "canonical_url": "https://gitdocs.org/fix/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs",
  "query_alias_url": "https://gitdocs.org/q/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs",
  "markdown_url": "https://gitdocs.org/fix/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs.md",
  "json_url": "https://gitdocs.org/api/fixes/next-js-route-handlers-caching-get-cached-by-default-dynamic-by-default-docs.json",
  "canonical_query": "Next.js route handlers caching GET cached by default dynamic by default docs",
  "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"
  ],
  "organic_dependency_search_count": 4,
  "affected_versions": "",
  "exact_errors": [],
  "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.",
  "before": "",
  "after": "",
  "verification": "Verifier checks behavior across multiple requests/build modes, not merely compilation. Check request count, response freshness, and render behavior over multiple calls.",
  "unsafe_fixes": [
    "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."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": false,
    "no_web_strict_pass": null,
    "search_necessity_under_fixture": null,
    "no_web_oracle_note": "Observed query evidence is separated from necessity proof; no-web and stale-contract counterfactuals should be tracked separately."
  },
  "source_trail": [
    {
      "url": "https://nextjs.org/blog/next-16",
      "label": "Next.js 16"
    },
    {
      "url": "https://nextjs.org/docs/app/building-your-application/routing/route-handlers",
      "label": "Official reference opened by Codex"
    }
  ],
  "source_github_links": []
}
