Skip to content

Commit 4ab1968

Browse files
committed
Force no caching on get requests for /agents
1 parent 54c1250 commit 4ab1968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/src/app/api/agents/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { NextResponse } from 'next/server'
55

66
import { logger } from '@/util/logger'
77

8+
// Force dynamic rendering to ensure fresh metrics data
9+
export const dynamic = 'force-dynamic'
10+
export const revalidate = 0
11+
812
export async function GET() {
913
try {
1014
const oneWeekAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)

0 commit comments

Comments
 (0)