Reverted unwanted changes

perf/get-schedule-with-tracing^2
Keith Williams 2023-09-12 10:42:55 -03:00
parent 88ab297b8f
commit 0fed502b1e
1 changed files with 3 additions and 2 deletions

View File

@ -59,11 +59,12 @@ export function createNextApiHandler(router: AnyRouter, isPublic = false, namesp
if (isPublic && paths) {
const ONE_DAY_IN_SECONDS = 60 * 60 * 24;
const FIVE_MINUTES_IN_SECONDS = 5 * 60;
const ONE_YEAR_IN_SECONDS = 31536000;
const cacheRules = {
session: "no-cache",
// i18n data is user specific and thus should not be cached
i18n: "no-cache",
i18n: `max-age=${ONE_YEAR_IN_SECONDS}`,
// FIXME: Using `max-age=1, stale-while-revalidate=60` fails some booking tests.
"slots.getSchedule": `no-cache`,