Skip to content
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

IndexedDB cache fails like the caches #374

Open
DavidGOrtega opened this issue Apr 21, 2024 · 6 comments
Open

IndexedDB cache fails like the caches #374

DavidGOrtega opened this issue Apr 21, 2024 · 6 comments

Comments

@DavidGOrtega
Copy link
Contributor

IndexedDB was added to avoid #257 However in the previously reported OS with Chrome browser the issue is similar. While the loading is completed at 100% the files are not there and load fails at the end.

Uncaught (in promise) Error: ArtifactIndexedDBCache failed to fetch: http://localhost:8082/dolphin-2_6-phi-2/MLC/params_shard_0.bin

The indexedDB cache only presents 4 out of 50 bin files

image

In chromium works as expected

image
@DavidGOrtega

This comment was marked as outdated.

@DavidGOrtega

This comment was marked as outdated.

@DavidGOrtega

This comment was marked as outdated.

@DavidGOrtega
Copy link
Contributor Author

DavidGOrtega commented Apr 21, 2024

The problem is related on how Chrome manages quota and how much can be stored.
The maximum data allowed to store is severely restricted depending on opaque responses, incognito sessions and a very common setting that seems to be found enabled in MacOS by default:

If the user has enabled "Clear cookies and site data when you close all windows" in Chrome, the storage quota is significantly reduced to a maximum of approximately 300MB.

To avoid the restriction and be able to have bigger cache just change this setting on Chrome. To my mind this is a bump. Also que can confirm that IndexedDB is far better that caches as the limit is much higher.

image

@DavidGOrtega
Copy link
Contributor Author

DavidGOrtega commented Apr 22, 2024

I think this information would be very valuable in docs.

@CharlieFRuan
Copy link
Contributor

Really appreciate the findings! Will update the doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants