title: custom HTTP headers for static files with Django
body: <p>I'm writing an image bank with Django, and I want to add a  button to get a hi-res version of an image (the low-res is shown in the details page).  If I put just an <code>&lt;a&gt;</code> link, the browser will open the image instead of downloading it.  Adding an HTTP header like:</p>
  
  <pre><code>Content-Disposition: attachment; filename="beach008.jpg"
  </code></pre>
  
  <p>works, but since it's an static file, I don't want to handle the request with Django.  Currently, I'm using NGINX to serve static files, and dynamic pages are redirected via FastCGI to the Django process.  I'm thinking about using NGINX <code>add-header</code> command, but could it set the <code>filename="xx"</code> part?.  Or maybe there's some way to handle the request in Django, but make NGINX serve the content?</p>