nginx, x-accel-redirect and mime types
If you want to let nginx guess the right mime type, you juste have to make sure no content-type is returned from your backend server.
With django:
response = HttpResponse()
response['Content-Type'] = ''
response['X-Accel-Redirect'] ='/my/file.jpg'
return response