Not support http streaming
Closed this issue · 2 comments
halida commented
when I using http streaming:
def show
render stream: true
end
content of the webpage is truncated. after remove the middleware of livereload, it works fine.
johnbintz commented
I don't know anything about how to handle streaming in Rack middleware for a process like this. I can suggest two things:
- You can blacklist particular URLs from being passed through Rack::LiveReload using
:ignore
. - If you can find an example of a Rack middleware that filters the HTML coming through a streaming response that I can look at, I can try to make it work.
johnbintz commented
No response on this, so I'm closing for cleaning purposes...but if other people are having problems, I would suggest someone (maybe me, preferably someone else who needs it) build a helper that can be brought into whatever framework that sets a response header that Rack::LiveReload looks for and, if found, disables Rack::LiveReload for that response.