Part of the application I'm currently building involves sending files based on authentication... i.e., the user must be logged in and authenticated to download the files. The files are medium-sized (several megabytes) and stored outside of site root.
I know about Rails' send_file but there are some issues with that. Mainly performance concerns, but also there's seemingly a lot involved with setting headers (mime-type, etc.), protecting against site hacking, etc.
From my Googling it appears that using an X-SendFile header is the preferred way to do it... robust, secure, doesn't have Ruby do the heavy lifting...
So my question, I suppose, is... do HostingRails servers support X-SendFile? And if not, does anyone have any good suggestions I should hear?
Thanks,
Luke
Apache mod: http://celebnamer.celebworld.ws/stuff/mod_xsendfile/