sindresorhus/refined-github
Do you want to work on this issue?
You can request for a bounty in order to promote it!
Replace our cookie-based cache with self-clearing browser.storage #2100
bfred-it posted onGitHub
Cache where? Our cache is rather small and if we're gonna store them in a regular
browser.storage.local
we also need a cleaning mechanism so it doesn't stay there forever.I think a simple LRU implementation on top of
browser.storage.local
with lazy saving/cleaning should suffice.
Originally posted by @dotconnor in https://github.com/sindresorhus/refined-github/pull/2026
Whatever the method used, it's important that unused items don't linger in the cache forever.