Ensure web assets are refreshed across frontend updates
Author: nitnelaveCreated Aug 6, 2026Updated Aug 6, 2026
A browser holding an older WASM bundle can become incompatible with an updated server API. Because the stale client may not understand changed response formats or API behavior, users can be unable to log in or use the web UI until a hard refresh or cache expiry.
The frontend assets currently use stable URLs (/static/main.js and /pkg/lldap_app_bg.wasm), and main.js has no explicit cache-control policy. Browser/proxy revalidation is not a reliable compatibility strategy.
Acceptance criteria
- Deploying a new server/frontend version does not leave users on a stale WASM bundle incompatible with the server.
- Use content-versioned asset URLs, or require revalidation (
Cache-Control: no-cache) for the loader and WASM assets. - Cover caching/proxy behavior in deployment documentation or tests.
Source: lldap/lldap