Skip to content

Conversation

conico974
Copy link
Contributor

@conico974 conico974 commented Jul 27, 2025

Fix cache interceptor returning cached response when using previiew mode.

Thanks @horai93 for the issue and the fix there.
Fix #919

Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 26.58% 2596 / 9764
🔵 Statements 26.58% 2596 / 9764
🔵 Functions 54.26% 140 / 258
🔵 Branches 73.13% 618 / 845
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/open-next/src/core/routing/cacheInterceptor.ts 88.88% 60.71% 100% 88.88% 44, 55-61, 75-76, 120, 174-175, 196-198, 203-204, 215-217, 227-228, 280-281
Generated in workflow #1370 for commit b18b99b by the Vitest Coverage Report Action

Copy link

pkg-pr-new bot commented Jul 27, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@935

commit: b18b99b

@conico974 conico974 merged commit 3b23495 into main Jul 28, 2025
3 checks passed
@conico974 conico974 deleted the conico/cache-interceptor-draft branch July 28, 2025 10:05
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.

cacheInterceptor does not respect Next.js draft mode (preview mode)

2 participants