Jason,
This doesn't affect page_attachments. For Apache, I compiled and
installed mod_xsendfile, and then added these two directives to my
Apache config:
XSendfile on
XSendFileAllowAbove on
And this line to config/environment.rb, inside the after_initialize block:
ResponseCache.defaults[:use_x_sendfile] = true
Sean
Jason Garber wrote:
Sean, did you use my page_attachments_xsendfile extension? If not,
I'm curious how you set it up.
Jason
On Jan 30, 2009, at 1:23 PM, Sean Cribbs wrote:
Last night at our little hack session at John's, I added the ability
to support X-Accel-Redirect headers for nginx. It would be great if
someone could test this addition with nginx. In
config/environment.rb, put this line inside the
config.after_initialize block:
ResponseCache.defaults[:use_x_accel_redirect] = true
Since I have seancribbs.com running the latest and hosted using
Apache/Passenger, I decided to turn on X-Sendfile headers. However,
Apache doesn't seem to recognize them and just serves up a blank
response (with the X-Sendfile header included in the response). So
my questions are two:
1) Is this just a side-effect of using Passenger? Would a proxy
scenario (Mongrel, Thin, etc) work?
2) Is there something different Radiant should be doing with other
headers to make it work?
Additionally, if anyone could look into conditional GETs and make
sure we're doing it right, that would be great.
Sean
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant