perf(web): cache macro images in local PWA (1.1.2) #12

Merged
jknapp merged 1 commits from perf/local-image-cache into main 2026-07-18 06:29:20 +00:00
Owner

Same image-caching fix as the relay, applied to the local PWA + desktop /api/image Cache-Control. Verified in a browser.

Same image-caching fix as the relay, applied to the local PWA + desktop /api/image Cache-Control. Verified in a browser.
jknapp added 1 commit 2026-07-18 06:29:19 +00:00
Same fix as the relay: the local PWA re-fetched every macro image and revoked
the blob on each re-render. Cache image URL -> Promise<objectURL> and reuse
across renders (images are immutable per uuid path); add Cache-Control:
immutable on the desktop /api/image response. Verified in a browser: 7
re-renders produced only the initial 3 image fetches, none repeated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jknapp merged commit 7625053a6c into main 2026-07-18 06:29:20 +00:00
jknapp deleted branch perf/local-image-cache 2026-07-18 06:29:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MacroPad/MP-Server#12