This was added in bug 287286 for bug 264757 (saving images with content-disposition). It seems like the needs for the content-disposition are not unique to images and that we should have a general solution instead of something specific to images.
Can't we read that information from the cache?
The discussion in the bugs linked above sort of covers that...
You need to log in before you can comment on or make changes to this bug.