File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
67
67
const revalidateAfter = revalidate * 1_000 + blob . lastModified
68
68
return ( revalidateAfter - Date . now ( ) ) / 1_000
69
69
}
70
- return revalidate === false ? 'PERMANENT' : 'NOT SET'
70
+ if ( revalidate === false ) {
71
+ return 'PERMANENT'
72
+ }
71
73
}
72
74
73
75
return 'NOT SET'
Original file line number Diff line number Diff line change @@ -112,14 +112,14 @@ export default async (
112
112
}
113
113
114
114
const nextCache = response . headers . get ( 'x-nextjs-cache' )
115
- const isServedFromCache = nextCache === 'HIT' || nextCache === 'STALE'
115
+ const isServedFromNextCache = nextCache === 'HIT' || nextCache === 'STALE'
116
116
117
117
topLevelSpan . setAttributes ( {
118
118
'x-nextjs-cache' : nextCache ?? undefined ,
119
- isServedFromCache ,
119
+ isServedFromNextCache ,
120
120
} )
121
121
122
- if ( isServedFromCache ) {
122
+ if ( isServedFromNextCache ) {
123
123
await adjustDateHeader ( {
124
124
headers : response . headers ,
125
125
request,
You can’t perform that action at this time.
0 commit comments