Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarpavlovsky committed Dec 7, 2023
1 parent 58ac9e7 commit 5217d78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/marginfi-v2-ui/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5217d78

Please sign in to comment.