javascript - gzip compression is not detected by PageSpeed Insights (node.js) -
i build gzip-files gulp (gulp-gzip) , use them npm package connect-gzip-static:
var app = express(); var servestatic = require('connect-gzip-static'); //... app.use(servestatic(__dirname)).listen(3000);
however, pagespeed insights not detect gzip compression.
but google chrome developer console says: response headers: content-encoding: gzip. other seo testing tools detecting gzip. why google doesen't ?
i gziped html, js, css. should gzip svg's ? thanks!
pagespeed insights should tell resources not gzipped.
often third party resources out of control, or may types svg have not enabled yet.
pagespeed insights should taken guide , not gospel. it's easy become hung on it. if ignore bigger reasons site slow save few bytes on 1 resource.
Comments
Post a Comment