[whatwg] "Content-Disposition" property for <a> tags

Kornel Lesiński kornel at geekhood.net
Sat Jun 4 07:34:28 PDT 2011

On Fri, 03 Jun 2011 14:24:21 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> Think a URI like this:
>    http://mysite.org/generate_progress_report.php?quarter=Q12010
> When saving, it would be good to use something like "Progress report of  
> Q1 2010" as the filename.  But that's not "part of the URI" in any sense.
> Note that some browsers will do weird parsing of the query params to  
> attempt to extract a "useful filename".  That seems strictly worse than  
> just using Content-Disposition.

FWIW, this works in Apache, although it's not a well-known trick:


However, It does not solve the problem of forcing the download, which I  
think is the main point of <a content-disposition>.

regards, Kornel Lesiński

More information about the whatwg mailing list