diff --git a/middlewares/utils.ts b/middlewares/utils.ts index 47cb5873d..0d559c2a4 100644 --- a/middlewares/utils.ts +++ b/middlewares/utils.ts @@ -36,13 +36,14 @@ export function getDefaultRequestHeaders(request: NextRequest) { return headers } -type ContentStackResponse = { - contentType: string | null - uid: string | null - expiresAt: number -} - -const entryResponseCache: Map = new Map() +const entryResponseCache: Map< + string, + { + contentType: string | null + uid: string | null + expiresAt: number + } +> = new Map() let size: number = 0 export const fetchAndCacheEntry = async (path: string, lang?: Lang) => {