> That but use X-Sendfile or X-accel-redirect: this makes apache/nginx
> send the file, rather than funnelling it through ruby. All your rails
> controller does (assuming the person is  authorized) is set a header
> in the response saying 'send them this file')

How does X-Sendfile behave when turned on and using mongrel for
development on the local machine?
Will mongrel serve the file or not?
Maybe it makes sense to turn X-Sendfile off in config/environments/
development.rb to have mongrel serve the files when developing?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to