Skip to content

revalidateTag() cannot be relied upon to work – frequently will only revalidate the first affected tag visited, not any of the subsequent page visits #60834

@simonhrogers

Description

@simonhrogers

Link to the code that reproduces this issue

https://github.com/simonhrogers/Matt-Carey-Williams/tree/revalidate-bug-report

To Reproduce

This is using Sanity’s own template repository for the App router, and they claim this is a Next/Vercel issue.

Current vs. Expected behavior

Only the first page visited by an array of tags is updated, after this, no number of refreshes will update the other tagged pages.

I expect all pages to be revalidated. Revalidate reports 200 in Vercel function logs for each affected page.

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4-canary.26
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router

Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions