X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fskyquake.js;h=685f049f0e010ca830a96dfd86d07abcaf8fd22c;hp=4c5adcf9304a28c6a38b2eea947b567c9d23a004;hb=refs%2Fheads%2Fprojects;hpb=3d39b18290b9cb3e10c1a80d91ac4819e7c58474 diff --git a/skyquake/skyquake.js b/skyquake/skyquake.js index 4c5adcf93..685f049f0 100644 --- a/skyquake/skyquake.js +++ b/skyquake/skyquake.js @@ -1,3 +1,5 @@ + + /* * * Copyright 2016 RIFT.IO Inc @@ -110,7 +112,7 @@ if (cluster.isMaster && clusteredLaunch) { app.use(session({ secret: 'ritio rocks', - resave: true, + resave: false, saveUninitialized: true })); app.use(bodyParser.json()); @@ -272,6 +274,13 @@ if (cluster.isMaster && clusteredLaunch) { app.get('/multiplex-client', function(req, res) { res.sendFile(__dirname + '/node_modules/websocket-multiplex/multiplex_client.js'); }); + + // handle requests for gzip'd files + app.get('*gzip*', function (req, res, next) { + res.set('Content-Encoding', 'gzip'); + next(); + }); + } /**