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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -