#2131: [patch] HttpResponseSendFile for serving static files handler-specific
sendfile mechanism
-----------------------------------------------+----------------------------
          Reporter:  ymasuda[at]ethercube.com  |         Owner:  alsleme
            Status:  new                       |     Milestone:         
         Component:  Core framework            |       Version:  SVN    
        Resolution:                            |      Keywords:         
             Stage:  Design decision needed    |     Has_patch:  1      
        Needs_docs:  0                         |   Needs_tests:  1      
Needs_better_patch:  0                         |  
-----------------------------------------------+----------------------------
Comment (by graham.carl...@maplecroft.com):

 Looked in to this a while back (I created the duplicate ticket #7894 with
 similar patch), but found that in production using the WSGI file_wrapper
 approach can be problematic. I found that serving PDFs to an adobe reader
 client failed for documents above around 25MB in size because reader
 required the web server to satisfy byte range requests which didn't work
 with WSGI. I ended up using the X-SendFile header and mod_xsendfile (on
 apache) which didn't have these problems. I'm not certain whether serving
 bytes range is inherently impossible with WSGI but requests to apache with
 mod_wsgi didn't satisfy them for the WSGI content.

 Also you might like to make the same change that the patch in #7894 made
 to the 'django.views.static.serve' function so the django development
 server can use this speedup.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2131#comment:23>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to