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