From d0e6b45097eee798cce2b7378cb352fafcc021cc Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Tue, 18 May 2021 23:44:42 +1000 Subject: [PATCH] Correct cache options for languages --- crabfit-frontend/src/i18n/index.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crabfit-frontend/src/i18n/index.ts b/crabfit-frontend/src/i18n/index.ts index 693badb..399bb14 100644 --- a/crabfit-frontend/src/i18n/index.ts +++ b/crabfit-frontend/src/i18n/index.ts @@ -9,19 +9,12 @@ i18n .use(initReactI18next) .init({ fallbackLng: 'en-US', - debug: true, - load: 'currentOnly', + debug: process.env.NODE_ENV !== 'production', interpolation: { escapeValue: false, }, backend: { loadPath: '/i18n/{{lng}}/{{ns}}.json', - requestOptions: { - cache: 'no-cache' - }, - customHeaders: { - pragma: 'no-cache', - }, }, });