Reverted unwanted changes
parent
88ab297b8f
commit
0fed502b1e
|
@ -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`,
|
||||
|
|
Loading…
Reference in New Issue