to force a download on an HTTP request, set the Content-Disposition header to attachment; filename=whatever_floats_your_boat.pdf

Content-disposition: attachment; filename=huge_document.pdf