mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Revert "Set cache to private for the language resources"
This reverts commit 90a14ee871.
This commit is contained in:
@@ -21,9 +21,6 @@ api.geti18nBrowserScript = {
|
|||||||
url: '/i18n/browser-script',
|
url: '/i18n/browser-script',
|
||||||
async handler (req, res) {
|
async handler (req, res) {
|
||||||
if (IS_PROD) {
|
if (IS_PROD) {
|
||||||
res.set({
|
|
||||||
'Cache-Control': 'private'
|
|
||||||
});
|
|
||||||
res.sendFile(`${BROWSER_SCRIPT_CACHE_PATH}${req.language}.js`);
|
res.sendFile(`${BROWSER_SCRIPT_CACHE_PATH}${req.language}.js`);
|
||||||
} else {
|
} else {
|
||||||
res.set({
|
res.set({
|
||||||
|
|||||||
Reference in New Issue
Block a user