I have a Django app that lets users upload files. Any kind of file. It's nice that Apache will let me force file downloads based on the files extension.
<LocationMatch"\.(gz|tar|pdf|docx|doc|xls|xlsx|bz2|zip)$"> SetHandlerNone Header set Content-Disposition attachment </LocationMatch>
So, in my HTML/templates: all I have to do is this: