Rails 4 Rack::Deflater is not working. Page speed says not gzipped -
i have enabled rack::deflater in app. in headers can see accept-encoding:gzip, deflate, sdch. pagespeed insights report gzip not enabled! use nginx , puma in server. how can fix this?
i had similar problem.
when started suggestion here inserting config.middleware.use rack::deflater in config/application.rb content not compressed. solutions suggested using config.middleware.insert_before or updating config.ru did not work. 
then found out not because of problem approaches listed above, because, using apache/httpd , had explicitly enable rack_deflate module described here, , compression started working.
Comments
Post a Comment