Skip to content

Commit

Permalink
fix(canvas): prevent caching during image export
Browse files Browse the repository at this point in the history
- Add 'no-cache' option to fetch request for image export
- Ensures fresh image data is always retrieved when exporting canvas
  • Loading branch information
mrcfps committed Mar 7, 2025
1 parent 467bc2a commit 7c75341
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const useExportCanvasAsImage = () => {
try {
const response = await fetch(imgUrl, {
mode: 'cors',
cache: 'no-cache',
...(imgUrl.startsWith(staticPrivateEndpoint) ? { credentials: 'include' } : {}),
});
const blob = await response.blob();
Expand Down

0 comments on commit 7c75341

Please sign in to comment.