refactor: Update fetch requests to disable caching for video data retrieval

This commit is contained in:
Yusuf İpek
2026-02-07 18:41:07 +03:00
parent 46d4e0c7d7
commit f8afec0291
4 changed files with 5 additions and 5 deletions
@@ -63,7 +63,7 @@ export async function GET(request: NextRequest, { params }: RouteParams) {
isAuthenticated: !!session?.user?.id,
});
return withCacheControl(response, 'private, max-age=30, stale-while-revalidate=60');
return withCacheControl(response, 'private, no-cache');
} catch (error) {
console.error('Error fetching video:', error);
return apiErrors.internalError('Failed to fetch video');
+1 -1
View File
@@ -70,7 +70,7 @@ export async function GET(request: NextRequest, { params }: RouteParams) {
canComment: isOwner || isMember || isPublic,
});
return withCacheControl(response, 'public, s-maxage=60, stale-while-revalidate=300');
return withCacheControl(response, 'private, no-cache');
} catch (error) {
console.error('Error fetching video:', error);
return apiErrors.internalError('Failed to fetch video');