By downloading the image once and caching it in memory it allows for the download button to work with signed download urls that have an inbuilt expiry time (eg AWS).
Previously the download button would always re-fetch which meant if the doc had been open longer than the url expiry it would fail.
By downloading the image once and caching it in memory it allows for the download button to work with signed download urls that have an inbuilt expiry time (eg AWS).
Previously the download button would always re-fetch which meant if the doc had been open longer than the url expiry it would fail.
closes outline/outline#2185