From 5217d784d12d14e6652cc8b7004ae55d62607d43 Mon Sep 17 00:00:00 2001 From: edgarpavlovsky Date: Thu, 7 Dec 2023 18:18:38 -0500 Subject: [PATCH] update --- apps/marginfi-v2-ui/src/middleware.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/marginfi-v2-ui/src/middleware.ts b/apps/marginfi-v2-ui/src/middleware.ts index 67adf62d0f..1c41ef3b25 100644 --- a/apps/marginfi-v2-ui/src/middleware.ts +++ b/apps/marginfi-v2-ui/src/middleware.ts @@ -8,7 +8,9 @@ export function middleware(req: NextRequest) { const basicAuth = req.headers.get("authorization"); const url = req.nextUrl; const response = NextResponse.next(); - response.headers.set('Cache-Control', 'public, max-age=14400'); + response.headers.set('Vercel-CDN-Cache-Control', 'private, max-age=10'); + response.headers.set('CDN-Cache-Control', 'private, max-age=10'); + response.headers.set('Cache-Control', 'private, max-age=10'); if (process.env.AUTHENTICATION_DISABLED === "true") { return response;