express - Sails 0.10.5 compress middleware and serving gzipped assets -
in sails 0.10.5 express compression supposed in middleware production mode default according issues on github, none of response headers have appropriate content-encoding suggest have been gzipped. furthermore, sizes of assets match uncompressed assets.
after searching other issues related this, found this question theoretically opposite of problem: had gzipped files in place , needed middleware , have middleware (supposedly default) no files. problem (apparently) solved adding middleware config, required compression before 0.10.5. so, npm installed grunt-contrib-compress , set config file. now, have gzipped files being produced successfully, they're not being served. tried manually requesting gzipped version of asset injecting in sails-linker instead of regular js, content-type on response header 'application/octect-stream'.
has served gzipped static assets sails app? doing incorrectly? outline of general process appreciated.
Comments
Post a Comment