MCPcopy Index your code
hub / github.com/codecombat/codecombat / filter

Function filter

server_setup.js:68–71  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

66 morgan.format('prod', productionLogging);
67 app.use(morgan('prod'));
68 app.use(compression({filter(req, res) {
69 if (req.headers.host === 'codecombat.com') { return false; } // CloudFlare will gzip it for us on codecombat.com
70 return compressible(res.getHeader('Content-Type'));
71 }
72 })
73 );
74 } else if (!global.testing || config.TRACE_ROUTES) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected