Skip to content

Conversation

@YoSoySergio
Copy link
Contributor

@YoSoySergio YoSoySergio commented Dec 28, 2025

Resolves #2148, #2140

Problem

The /modules page intermittently returns 404 errors when accessed directly. The issue occurs because:

  1. The page uses ISR with 1-hour cache
  2. When queryCollection('landing').path('/modules') transiently fails, a 404 is thrown
  3. ISR caches the 404 response, causing persistent failures until cache expires

Solution

Set Cache-Control and CDN-Cache-Control headers to no-store before throwing the 404 error, preventing ISR from caching the error response.

@YoSoySergio YoSoySergio requested a review from atinux as a code owner December 28, 2025 13:03
@vercel
Copy link

vercel bot commented Dec 28, 2025

@YoSoySergio is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@YoSoySergio YoSoySergio force-pushed the fix/modules-isr-cache branch from 5b918fb to 6b7bfa3 Compare December 28, 2025 13:10
@danielroe danielroe merged commit b5b91d9 into nuxt:main Jan 1, 2026
5 of 6 checks passed
@YoSoySergio YoSoySergio deleted the fix/modules-isr-cache branch January 1, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modules page returns 404 when called directly

2 participants