I think the server needs to gzip now, and possibly only a bug is keeping it working.

This commit is contained in:
Nick Winter 2014-12-04 16:33:17 -08:00
parent 222e532006
commit 5aefd5ffa2

View file

@ -56,7 +56,6 @@ setupExpressMiddleware = (app) ->
express.logger.format('prod', productionLogging)
app.use(express.logger('prod'))
app.use express.compress filter: (req, res) ->
return false if req.headers.host is 'codecombat.com' # CloudFlare will gzip it for us on codecombat.com # But now it's disabled.
compressible res.getHeader('Content-Type')
else
express.logger.format('dev', developmentLogging)