Prevent timeouts when cache fails (#7095)
Return empty cache instead of failing Keeping console errors
This commit is contained in:
1 parent
b6eca6e083
commit
8e2ece7526
2 files changed
+23
-8
No files matched your search
@@ -64,7 +64,7 @@ export default trpcNext.createNextApiHandler({
|
||||
"viewer.public.session": `no-cache`,
|
||||
"viewer.public.i18n": `no-cache`,
|
||||
// Revalidation time here should be 1 second, per https://github.com/calcom/cal.com/pull/6823#issuecomment-1423215321
|
||||
"viewer.public.slots.getSchedule": `max-age=0, s-maxage=1`,
|
||||
"viewer.public.slots.getSchedule": `no-cache`, // FIXME
|
||||
} as const;
|
||||
|
||||
// Find which element above is an exact match for this group of paths
|
||||
|
||||
Reference in new issue
Block a user