Persist video predictions in a unified media cache and add a cache browser - #126
Merged
Merged
Conversation
Cache-Control headers are unreliable for our purposes: no-cache or short max-age values evicted good predictions, and Expires bypassed any floor. Video frames no longer carry no-cache metadata so they can persist.
…rrors are readable
…atabase Replace ImageDatabase with MediaCacheDatabase holding imagePredictions and videoPredictions, both indexed by [hostname+timestamp]; legacy databases are deleted on install/update. Video frame sample predictions are batched per video key, seed the verdict timeline on attach and answer covered samples locally within 0.25 s. Rows keep forced visibility and model id, and are cleared on strictness change.
…Expired in the base repository
govza
force-pushed
the
cache-options
branch
from
September 27, 2026 21:12
6a08454 to
9049594
Compare
…eport video state on failure
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.
Summary
Expires.chrome://extensionserrors are readable.ImageDatabasewith one DB holdingimagePredictionsandvideoPredictions, both indexed by[hostname+timestamp]. LegacyImageDatabase/VideoDatabaseare deleted on install/update, so the cache starts empty.Test plan
pnpm test:unit(652 passing), typecheck, lint