For a long time, I’v tried to force file download by modifying
Content-Type in headers. Unfortunately it’s not a safe solution.
The best way I’ve found is to send the content as an “attachment” (using
This is a sample config to do this with Nginx: