tts-voice-creator-clone-and.../static/js
mARTin-B78 b3c1e4cc7f Fix JS caching root cause + robustness for sample text and STT dropdown
Root cause: VERSION was not volume-mounted, so the server always reported
1.2.0, causing browsers to serve 1-year-immutable cached JS even after
code changes.

Fixes:
- docker-compose.yml: add ./VERSION:/app/VERSION:ro volume mount.
  After `docker compose up -d`, the server reads the current VERSION file
  and JS is cache-busted by the correct version string.
- loader.js: append session timestamp to _appVersion so every page load
  generates a unique JS URL. JS is always fresh regardless of whether
  VERSION is current, at the cost of one network round-trip per file per
  session (acceptable for a local tool).
- s-clone.html: embed EN default text directly in the textarea so the
  field is never empty even before JS runs.
- voice-clone.js: remove the 'skip if already filled' guard in
  initCloneSampleText so navigating back always resets to the language
  text; call refreshSttBackends on load with sttReady event fallback.
- stt.js: dispatch 'sttReady' event after all STT listeners are wired.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 18:23:22 +02:00
..
ai-backends.js Persist engine container names and card URLs to server settings 2026-05-29 15:17:02 +02:00
benchmark.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
conversation.js Show spoken sentence in typing bubble; fix VAD noise sensitivity 2026-05-29 20:50:44 +02:00
engines.js Persist engine container names and card URLs to server settings 2026-05-29 15:17:02 +02:00
generation.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
init.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
integrations.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
routing.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
settings.js Persist engine container names and card URLs to server settings 2026-05-29 15:17:02 +02:00
stt.js Fix JS caching root cause + robustness for sample text and STT dropdown 2026-05-31 18:23:22 +02:00
tts-preview.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
utils.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
voice-clone.js Fix JS caching root cause + robustness for sample text and STT dropdown 2026-05-31 18:23:22 +02:00
voice-inspector.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
voice-library.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
voice-sources.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00