node.js - How to serve gzipped content on Parse.com? -


it seems guys on parse.com don't want speed our hosted content enabling gzip in hosting service.

it seems it's not possible read files , serve them through parse's express.

given these horrid limitations, possible still serve gzipped content in way? can add gzip step in build process have no idea how manually serve enabled browsers.

my build went 1.5mb 360kb when gzipped. that's reduction of more 4x! that's important mobile users (one of parse targets, right?)

you can use expressjs/compression middleware

var compression = require('compression') var express = require('express')   var app = express() // compress requests app.use(compression()) 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -