immich-docker/search-app
Jeff Emmett af3468e0d5 fix: include Immich chunk manifest hash in inject-version
After an Immich upgrade, Svelte chunk filenames rotate but the cached
PWA shell still imports old ones — dynamic imports 500 or 404. Our
auto-update mechanism only caught changes to our injected script, not
upstream changes, so the stuck PWA never self-healed.

Now /api/custom/inject-version returns a hash of
(custom script || Immich chunk manifest fingerprint), so any upgrade
bumps the version, the PWA detects it on next poll, unregisters the
service worker, clears caches, and reloads with fresh chunks.

We extract only the /_app/immutable/... references from the HTML to
avoid hashing server-rendered per-user state (CSRF tokens etc) that
would cause spurious version churn.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 12:56:37 -04:00
..
Dockerfile feat: add search-app proxy with WebSocket support and upload buffering 2026-04-14 12:47:53 -04:00
live-search.js feat: map view stacks top/bottom + sorts photos by distance to center 2026-04-17 12:53:49 -04:00
server.js fix: include Immich chunk manifest hash in inject-version 2026-04-17 12:56:37 -04:00