mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Set cache to private for the language resources
This commit is contained in:
parent
7aecec9cf4
commit
90a14ee871
1 changed files with 3 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue