loris-imageserver / loris

Loris IIIF Image Server
Other
208 stars 87 forks source link

Set the Content-Disposition header in image responses #476

Closed alexwlchan closed 4 years ago

alexwlchan commented 4 years ago

Currently browsers will use the last part of the path as a filename, which is almost always something unhelpful like "default.jpg" or "default.png". This patch changes Loris to start sending a header which tells browsers to include the ident in the responses.

This should make it easier for people to trace images back to the original from a downloaded file.

A first step towards https://github.com/loris-imageserver/loris/issues/18