Skip to content

Commit

Permalink
fix: cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbpvsc committed Dec 10, 2023
1 parent 710c5a0 commit 7d44bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/marginfi-v2-ui/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export function middleware(req: NextRequest) {
const basicAuth = req.headers.get("authorization");
const url = req.nextUrl;
const response = NextResponse.next();
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');
// 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

1 comment on commit 7d44bf1

@vercel
Copy link

@vercel vercel bot commented on 7d44bf1 Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.