File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -2455,15 +2455,13 @@ export default abstract class Server<
2455
2455
protocol = parsedFullUrl . protocol as 'https:' | 'http:'
2456
2456
} catch { }
2457
2457
2458
- // use existing incrementalCache instance if available
2459
2458
const incrementalCache : import ( './lib/incremental-cache' ) . IncrementalCache =
2460
- ( globalThis as any ) . __incrementalCache ||
2461
- ( await this . getIncrementalCache ( {
2459
+ await this . getIncrementalCache ( {
2462
2460
requestHeaders : Object . assign ( { } , req . headers ) ,
2463
2461
requestProtocol : protocol . substring ( 0 , protocol . length - 1 ) as
2464
2462
| 'http'
2465
2463
| 'https' ,
2466
- } ) )
2464
+ } )
2467
2465
2468
2466
// TODO: investigate, this is not safe across multiple concurrent requests
2469
2467
incrementalCache . resetRequestCache ( )
Original file line number Diff line number Diff line change @@ -185,10 +185,7 @@ export async function adapter(
185
185
} )
186
186
}
187
187
188
- if (
189
- ! ( globalThis as any ) . __incrementalCache &&
190
- ( params as any ) . IncrementalCache
191
- ) {
188
+ if ( ( params as any ) . IncrementalCache ) {
192
189
; ( globalThis as any ) . __incrementalCache = new (
193
190
params as any
194
191
) . IncrementalCache ( {
You can’t perform that action at this time.
0 commit comments