Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: Avoid re-download of image from remote source when clicking download button #474

Merged
merged 2 commits into from Jun 18, 2021

Conversation

tommoor
Copy link
Member

@tommoor tommoor commented Jun 18, 2021

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

@tommoor tommoor merged commit fc15889 into main Jun 18, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix/issues-2185 branch June 18, 2021 23:24
tommoor added a commit that referenced this pull request Jun 22, 2021
tommoor added a commit that referenced this pull request Jun 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download button on images does not work on publicly shared documents
1 participant