+
Tasko helps teams move
-
diff --git a/app/api/cards/[cardId]/logs/route.ts b/app/api/cards/[cardId]/logs/route.ts
index e9fcb77..6dcaa9d 100644
--- a/app/api/cards/[cardId]/logs/route.ts
+++ b/app/api/cards/[cardId]/logs/route.ts
@@ -27,14 +27,18 @@ export async function GET(
createdAt: 'desc',
},
take: 3,
+ cacheStrategy: {
+ ttl: 30,
+ swr: 60,
+ },
});
return new NextResponse(JSON.stringify(auditLogs), {
status: 200,
headers: {
- 'Cache-Control': 'public, s-maxage=5',
+ 'Cache-Control': 'public, s-maxage=1',
'CDN-Cache-Control': 'public, s-maxage=60',
- 'Vercel-CDN-Cache-Control': 'public, s-maxage=3600',
+ 'Vercel-CDN-Cache-Control': 'public, s-maxage=120',
},
});
} catch (error) {
diff --git a/app/api/cards/[cardId]/route.ts b/app/api/cards/[cardId]/route.ts
index 1f17946..27ebd8d 100644
--- a/app/api/cards/[cardId]/route.ts
+++ b/app/api/cards/[cardId]/route.ts
@@ -32,6 +32,10 @@ export async function GET(
},
},
},
+ cacheStrategy: {
+ ttl: 30,
+ swr: 60,
+ },
});
return new NextResponse(JSON.stringify(card), {
@@ -39,7 +43,7 @@ export async function GET(
headers: {
'Cache-Control': 'public, s-maxage=1',
'CDN-Cache-Control': 'public, s-maxage=60',
- 'Vercel-CDN-Cache-Control': 'public, s-maxage=3600',
+ 'Vercel-CDN-Cache-Control': 'public, s-maxage=120',
},
});
} catch (error) {
diff --git a/sentry.client.config.ts b/sentry.client.config.ts
index 0af7101..d174104 100644
--- a/sentry.client.config.ts
+++ b/sentry.client.config.ts
@@ -35,7 +35,7 @@ Sentry.init({
profilesSampleRate: 1.0,
// Define how likely Replay events are sampled.
- replaysSessionSampleRate: 0.5,
+ replaysSessionSampleRate: 0.25,
// Define how likely Replay events are sampled when an error occurs.
replaysOnErrorSampleRate: 1.0,