On Thu, Jun 14, 2012 at 11:36 AM, Mark Huang <zhengha...@gmail.com> wrote: > Andi, could you illustrate what your setup was on Pyramid to do this X-Accel > thingy?
The idea is to send a response that has the X-Accel header.. nginx sees that header in the response and sends to the real client a response without that header but containing the file content in the body. def my_view(request): response = Response() response.content_type = 'some-pdf-type' response.headers['X-Accel'] = '/path/to/file' return response You then need to setup nginx as per its docs to support watching for that header. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.