railsjazz / rails_live_reload

Live Reload for your Rails app. The easiest way to increase your productivity.
https://www.railsjazz.com/
MIT License
335 stars 9 forks source link

Rack::Deflater interferes with reload #32

Open kirley opened 8 months ago

kirley commented 8 months ago

I'm running rails 7.1 and Ruby 3.3.0 and found that havingconfig.middleware.use Rack::Deflater in my config/application.rb stopped the rails_live_reload from working but there were no error messages. I fixed the problem by moving the Rack::Deflater to my config/environments/production.rb where reloading isn't required.

In case someone runs into this I thought it would be helpful to document it. Feel free to close this issue since there is a simple workaround.

P.S. Your gem is fantastic!