Skip to content

Add cache versioning for Read Aloud audio#219

Merged
dstillman merged 3 commits into
zotero:masterfrom
dstillman:read-aloud-cache-versions
Jun 24, 2026
Merged

Add cache versioning for Read Aloud audio#219
dstillman merged 3 commits into
zotero:masterfrom
dstillman:read-aloud-cache-versions

Conversation

@dstillman

@dstillman dstillman commented Jun 22, 2026

Copy link
Copy Markdown
Member

Propagates the server's per-provider-group cacheVersion (from /tts/voices) into each flattened voice config so the client can version its local audio cache keys, and surfaces Cache-Control: no-store so the client can skip caching those responses.

  • RemoteVoiceConfig / VoicesResponseTier: add cacheVersion; getAudio return adds noStore
  • parseVoicesResponse(): copy each tier config's cacheVersion onto every voice
  • Dev reference interface: version cache keys, honor no-store, prune stale entries once per session

The actual cache-key/pruning/no-store enforcement lives client-side.

Needed by: zotero/zotero#5967

Propagate the server's per-provider-group cacheVersion into each voice
config so the host can version cache keys, and honor Cache-Control:
no-store by skipping storage.
@dstillman dstillman marked this pull request as ready for review June 23, 2026 15:50
@dstillman dstillman merged commit 79d73d7 into zotero:master Jun 24, 2026
1 check passed
@dstillman dstillman deleted the read-aloud-cache-versions branch June 24, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant