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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -