Revert "No 404 responses for missing language files"

This reverts commit f0c941e5ae.
v1.18.x
Peter Jaszkowiak 8 years ago
parent 366ab103a4
commit 54ac23cc7a

@ -157,11 +157,6 @@ module.exports = function (app, middleware, hotswapIds) {
res.redirect(relativePath + '/assets/language' + req.path + '.json?' + meta.config['cache-buster']); res.redirect(relativePath + '/assets/language' + req.path + '.json?' + meta.config['cache-buster']);
}); });
// stop 404's on `/assets/language` route
app.use(relativePath + '/assets/language', function (req, res) {
res.json({});
});
app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), { app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), {
maxAge: app.enabled('cache') ? 5184000000 : 0 maxAge: app.enabled('cache') ? 5184000000 : 0
})); }));

Loading…
Cancel
Save