Skip to content

Commit 969f61f

Browse files
authored
Remove unused Server.responseCache (vercel#86768)
This appears to have been moved into the `RouteModule` vercel#80189
1 parent a949001 commit 969f61f

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

packages/next/src/server/base-server.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ import type {
1717
RenderOptsPartial as AppRenderOptsPartial,
1818
ServerOnInstrumentationRequestError,
1919
} from './app-render/types'
20-
import type {
21-
ServerComponentsHmrCache,
22-
ResponseCacheBase,
23-
} from './response-cache'
20+
import type { ServerComponentsHmrCache } from './response-cache'
2421
import type { UrlWithParsedQuery } from 'url'
2522
import {
2623
NormalizeError,
@@ -329,7 +326,6 @@ export default abstract class Server<
329326
protected interceptionRoutePatterns: RegExp[]
330327
protected nextFontManifest?: DeepReadonly<NextFontManifest>
331328
protected instrumentation: InstrumentationModule | undefined
332-
private readonly responseCache: ResponseCacheBase
333329

334330
protected abstract getPublicDir(): string
335331
protected abstract getHasStaticDir(): boolean
@@ -396,10 +392,6 @@ export default abstract class Server<
396392
requestHeaders: Record<string, undefined | string | string[]>
397393
}): Promise<import('./lib/incremental-cache').IncrementalCache>
398394

399-
protected abstract getResponseCache(options: {
400-
dev: boolean
401-
}): ResponseCacheBase
402-
403395
protected getServerComponentsHmrCache():
404396
| ServerComponentsHmrCache
405397
| undefined {
@@ -569,7 +561,6 @@ export default abstract class Server<
569561
void this.matchers.reload()
570562

571563
this.setAssetPrefix(assetPrefix)
572-
this.responseCache = this.getResponseCache({ dev })
573564
}
574565

575566
protected reloadMatchers() {

packages/next/src/server/next-server.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,6 @@ export default class NextNodeServer extends BaseServer<
525525
})
526526
}
527527

528-
protected getResponseCache() {
529-
return new ResponseCache(this.minimalMode)
530-
}
531-
532528
protected getPublicDir(): string {
533529
return join(/* turbopackIgnore: true */ this.dir, CLIENT_PUBLIC_FILES_PATH)
534530
}

0 commit comments

Comments
 (0)