perf(web): cache macro images in local PWA, bump to 1.1.2

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>
This commit is contained in:
2026-07-17 23:29:16 -07:00
parent e4f0471614
commit 6218a46b57
4 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Configuration and constants for MacroPad Server
VERSION = "1.1.1"
VERSION = "1.1.2"
DEFAULT_PORT = 40000
SETTINGS_FILE = "settings.json"