Skip to content

Harden Next/OpenNext prefetch and prevent runaway _rsc requests #5

Description

@meathill

Background

freeaiapi hit a Next 16.3 + OpenNext _rsc prefetch loop (~10M Worker requests / 2 days). optimisticRouting: false did not fix it; disabling OpenNext cache interception did. This repo's apps/web uses Next + OpenNext.

Tasks

  • Next.js is already 16.3.3+; keep related @next/* packages aligned.
  • Keep enableCacheInterception disabled; if enabled, set it to false.
  • Reduce unnecessary <Link> prefetch, especially footer / secondary / low-intent links (prefetch={false}).
  • Verify production _rsc requests stop after the initial prefetch burst.
  • Check Cloudflare Worker request metrics after deployment.

Upstream: opennextjs/opennextjs-cloudflare#1348 · opennextjs/opennextjs-aws#1212

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions