sindresorhus/refined-github

Reduce all caches to 1 hour or less #3302

fregante posted onGitHub

We had many "issues" related to cache. We do want requests to be cached, but maybe days-long caches are more troublesome than it's worth.

Also it would be great if someone picked this up first: https://github.com/fregante/webext-storage-cache/issues/19


how long is the current cache?

today i have to reset the cache for a "2days before" change is not show up

posted by muescha over 4 years ago

how long is the current cache?

It depends on the features. webext-storage-cache has a 30 days maxAge default, but most features have a relatively short maxAge.

posted by kidonng over 4 years ago

in my case it was at the branches view and missing pull requests - i think it is this error and there is a 12h cache: https://github.com/sindresorhus/refined-github/blob/d073d1480fa2b88e16632377b6835f93903716b2/source/features/show-associated-branch-prs-on-fork.tsx#L57

posted by muescha over 4 years ago

https://github.com/sindresorhus/refined-github/blob/d073d1480fa2b88e16632377b6835f93903716b2/source/features/show-associated-branch-prs-on-fork.tsx#L57-L58

staleWhileRevalidate means that you'll see cached data for 4 days after it expires (half a day), but one more page refresh will show the latest information.

posted by fregante over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests