From 20b83d5d8d11717e4cf52362d59e7254aa814953 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Thu, 25 May 2023 22:13:53 +0700 Subject: [PATCH] Remove cache on validate route --- src/app/(api)/api/validate/[...path]/route.ts | 3 --- src/app/(api)/api/validate/route.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/app/(api)/api/validate/[...path]/route.ts b/src/app/(api)/api/validate/[...path]/route.ts index f521601..744eb0a 100644 --- a/src/app/(api)/api/validate/[...path]/route.ts +++ b/src/app/(api)/api/validate/[...path]/route.ts @@ -260,9 +260,6 @@ export async function GET( return NextResponse.json(payload, { status: 200, - headers: { - "Cache-Control": apiConfig.cacheControl, - }, }); } catch (error: any) { const payload = createErrorPayload( diff --git a/src/app/(api)/api/validate/route.ts b/src/app/(api)/api/validate/route.ts index 08d0660..f6f4b59 100644 --- a/src/app/(api)/api/validate/route.ts +++ b/src/app/(api)/api/validate/route.ts @@ -72,9 +72,6 @@ export async function GET(request: NextRequest) { return NextResponse.json(payload, { status: 200, - headers: { - "Cache-Control": apiConfig.cacheControl, - }, }); } catch (error: any) { const payload = createErrorPayload(