Skip to content

fix: cache-bust gallery download URL with revision parameter - #249

Open
clang88 wants to merge 1 commit into
photobooth-app:mainfrom
clang88:bugfix/cache-bust-gallery-download
Open

clang88 wants to merge 1 commit into
photobooth-app:mainfrom
clang88:bugfix/cache-bust-gallery-download

Conversation

@clang88

@clang88 clang88 commented Sep 22, 2026 •

Copy link
Copy Markdown

ISSUE: The download button a URL to the image for download. This is cached by the browser. If a user changes the filter after clicking download once, and clicks download again, they will see the old image instead of the one with the new filter; clicking on "download" will also download the old image instead of the new one.

FIX: Adding a revision identifier as a query parameter in the URL forces the browser to bust the cache and provide the new image as download. This has the added advantage that by modifying the url query param v, it is possible to retrieve prior versions in the download link in the same browser session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant