-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache (weird) bug on Firefox #3842
Comments
nvm worked after clearing indexDb & cookies |
had same in chrome back in July even after updates! 👀 |
Maybe this did not worked as anticipated? |
I think so 🤔 I found this one GoogleChrome/workbox#3060 IndexedDB and workbox only partial support on firefox |
I've asked SubSquid about PostgreSQL error; I've already seen that one long time ago. |
just some thoughts
for this case, who triggering the notification is from the but even if the user sees the notification, currently flush indexedDB does not work on firefox. because in this PR #3834 using after some research, I have some points to address this issue
code example for no.2: // by default, put the date when storing data to indexedDB
setCache('hash', data)
// will be stored like this
// key: 'hash-2022-01-20'
// value: data
// today = 2022-01-20
// find cache with key 'hash-2022-01-20'
getCache('hash') // match
// today = 2022-01-21
// find cache with key 'hash-2022-01-21'
getCache('hash') // doesn't exist by default, the cache only validates for 1 day. how to set cache for // to set cache for 3 days
setCache('hash', data, { total: 3 })
// will be stored 3 times
// key: 'hash-2022-01-20'
// key: 'hash-2022-01-21'
// key: 'hash-2022-01-22' how to set cache for // set cache for 1 month
setCache('hash', data, { unit: 'month' })
// store cache with
// key: 'hash-2022-01'
// today = 2022-01-09
// find cache with key 'hash-2022-01'
getCache('hash', 'month') // match
// set cache for 3 months
setCache('hash', data, { total: 3, unit: 'month' })
// store multiple cache
// key: 'hash-2022-01'
// key: 'hash-2022-02'
// key: 'hash-2022-03' but still, I personally prefer point 1 |
this keeps happening (seemingly) randomly |
Looks like there is still some cache I suspect |
Hey, I guess time to figure out these cache issues with browser cache as some people have old endpoint after we've updated snek RPC for example |
hhmm, let me check on this one |
Looks like an old version of https://github.com/kodadot/packages/tree/main/sub-api
Tested both on:
https://beta.kodadot.xyz/
Firefox
console
Chrome
console
any idea where this bug come from? I clear my cache everytime on firefox.
The text was updated successfully, but these errors were encountered: