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<
24552455 protocol = parsedFullUrl . protocol as 'https:' | 'http:'
24562456 } catch { }
24572457
2458- // use existing incrementalCache instance if available
24592458 const incrementalCache : import ( './lib/incremental-cache' ) . IncrementalCache =
2460- ( globalThis as any ) . __incrementalCache ||
2461- ( await this . getIncrementalCache ( {
2459+ await this . getIncrementalCache ( {
24622460 requestHeaders : Object . assign ( { } , req . headers ) ,
24632461 requestProtocol : protocol . substring ( 0 , protocol . length - 1 ) as
24642462 | 'http'
24652463 | 'https' ,
2466- } ) )
2464+ } )
24672465
24682466 // TODO: investigate, this is not safe across multiple concurrent requests
24692467 incrementalCache . resetRequestCache ( )
Original file line number Diff line number Diff line change @@ -185,10 +185,7 @@ export async function adapter(
185185 } )
186186 }
187187
188- if (
189- ! ( globalThis as any ) . __incrementalCache &&
190- ( params as any ) . IncrementalCache
191- ) {
188+ if ( ( params as any ) . IncrementalCache ) {
192189 ; ( globalThis as any ) . __incrementalCache = new (
193190 params as any
194191 ) . IncrementalCache ( {
You can’t perform that action at this time.
0 commit comments