johnbintz/rack-livereload

README.md doesn't explain difference between middleware.insert_{before,after}

Closed this issue · 1 comments

It's not clear from the README.md when you should do

config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)

vs.

config.middleware.insert_before(
  Rack::Lock, Rack::LiveReload,
  ...

In fact, it makes it look like you would only do the latter when you want to set options, but this appears to be incorrect and misleading.

This was cleaned up a while ago, closing. Reopen if it's still an issue! :)