GithubHelp home page GithubHelp logo

Comments (7)

DavidGOrtega avatar DavidGOrtega commented on September 25, 2024 5

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

from web-llm.

CharlieFRuan avatar CharlieFRuan commented on September 25, 2024 4

Really appreciate the findings! Will update the doc

from web-llm.

DavidGOrtega avatar DavidGOrtega commented on September 25, 2024 2

I think this information would be very valuable in docs.

from web-llm.

t83714 avatar t83714 commented on September 25, 2024 1

For users who can't change the "Clear cookies and site data when you close all windows" settings in Chrome (e.g. when you use a company laptop with organisation-managed settings), the only option that seems to work is to pack code into a Chrome extension with unlimitedStorage permission, based on my tests (on M1 Mac & Chrome 125.0.6422.77 ).

e.g. the chrome-extension-webgpu-service-worker example, you will need to change the permissions in manifest.json to:

"permissions": ["unlimitedStorage", "tabs", "webNavigation"]

from web-llm.

DavidGOrtega avatar DavidGOrtega commented on September 25, 2024

Its related to the cache quota. For some reason in this OS and Chrome is 345MB

image

from web-llm.

DavidGOrtega avatar DavidGOrtega commented on September 25, 2024

I can it force to be bigger and it works 🤔

image

from web-llm.

DavidGOrtega avatar DavidGOrtega commented on September 25, 2024

Interestingly enough if I open a new tab without any URL the inspector shows a much larger limit

image

from web-llm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.