tts-voice-creator-clone-and.../static
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
..
js Fix JS caching root cause + robustness for sample text and STT dropdown 2026-05-31 18:23:22 +02:00
sections Fix JS caching root cause + robustness for sample text and STT dropdown 2026-05-31 18:23:22 +02:00
vendor Add skeleton loading, self-host assets, fix LLM empty response 2026-05-29 17:28:42 +02:00
app.js Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
index.html Add skeleton loading, self-host assets, fix LLM empty response 2026-05-29 17:28:42 +02:00
loader.js Fix JS caching root cause + robustness for sample text and STT dropdown 2026-05-31 18:23:22 +02:00
nav.js Fix clone UX: sample text, live monitor, quality, STT picker, OGG accept 2026-05-31 17:58:28 +02:00
style.css Fix clone UX: sample text, live monitor, quality, STT picker, OGG accept 2026-05-31 17:58:28 +02:00