Revert "Revert "Set cache to private for the language resources""

This reverts commit c6d1954153.
This commit is contained in:
SabreCat
2021-11-24 07:41:55 -06:00
parent a009f9ca5e
commit cd5044e780

View File

@@ -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({