Commit a15b974
authored
[backport]: properly gate segmentCache branch in base-server (#79505)
In 15.1, this branch should be a no-op when PPR is not enabled, because
`collectSegmentData` is
[gated](https://github.com/vercel/next.js/blob/69afa37323610c9bbfbecd22f0194f2f299d5a6c/packages/next/src/server/app-render/app-render.tsx#L4008)
on `isRoutePPREnabled`.
This also sets a no-store cache header when we respond with a 204 to
align with intended behavior.1 parent 69afa37 commit a15b974
3 files changed
Lines changed: 15 additions & 12 deletions
File tree
- packages/next/src/server
- test/e2e
- app-dir/segment-cache/incremental-opt-in
- pages-performance-mark/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3054 | 3054 | | |
3055 | 3055 | | |
3056 | 3056 | | |
3057 | | - | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
3058 | 3062 | | |
3059 | 3063 | | |
3060 | 3064 | | |
| |||
3090 | 3094 | | |
3091 | 3095 | | |
3092 | 3096 | | |
3093 | | - | |
3094 | | - | |
3095 | | - | |
3096 | | - | |
3097 | | - | |
3098 | | - | |
3099 | | - | |
3100 | | - | |
3101 | | - | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
3102 | 3105 | | |
3103 | 3106 | | |
3104 | 3107 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments