mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
unsupport MS Edge (for now, sorry) and some http header nits
This commit is contained in:
@@ -11,16 +11,17 @@ if (config.sentry_dsn) {
|
||||
|
||||
const app = express();
|
||||
|
||||
routes(app);
|
||||
|
||||
app.use(
|
||||
express.static(path.resolve(__dirname, '../dist/'), {
|
||||
setHeaders: function(res) {
|
||||
res.set('Cache-Control', 'public, max-age=31536000, immutable');
|
||||
res.removeHeader('Pragma');
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
routes(app);
|
||||
|
||||
app.use(pages.notfound);
|
||||
|
||||
app.listen(config.listen_port);
|
||||
|
||||
Reference in New Issue
Block a user