feat(tauri): cacheable media responses and Range streaming for video/audio#1157
Merged
7w1 merged 5 commits intoJul 20, 2026
Merged
Conversation
Update rewriteAuthenticatedMediaUrl expectations to account for the __sable_media_session query param, mocking getCurrentMediaSessionScope for deterministic results. Add a changeset for the Tauri media caching and Range streaming feature.
7w1
reviewed
Jul 20, 2026
eleboucher
force-pushed
the
feat/tauri-media-caching-streaming
branch
from
July 20, 2026 19:03
bb2457a to
fb97340
Compare
…udget A media file larger than MAX_CACHE_BYTES was written to disk and then immediately evicted by evict_if_needed (it alone exceeded the budget, so everything — including itself — got dropped), so it was never servable from disk on a hit. ensure_cached now skips the write for bodies larger than the budget and returns them in-memory for that request; handle_request serves a Range request off the in-memory buffer via the new serve_range_memory. Cache hits and all files within the budget are unchanged.
eleboucher
force-pushed
the
feat/tauri-media-caching-streaming
branch
from
July 20, 2026 19:11
990e1af to
c66f7fa
Compare
7w1
enabled auto-merge
July 20, 2026 20:14
7w1
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #
Type of change
Checklist:
AI disclosure: