Search code examples
javascriptgoogle-chromepermissionslocal-storagequota

Anyway to ask for permission for higher localStorage limit in Chrome without making an extension (from Javascript or manually from Chrome UI by user)?


I am making an inhouse solution deployed on a private web (https://www.example.com/). It's frontend only using WebAssembly (from .NET Blazor if relevant) and have full access to everything including environment that may need.

We cache the report data using localStorage however problem arise as the cache is too big for operation and exceed the limit.

If there is no other solution, we will have to modify the code to change to another storage that allows higher limit, but is there any config and/or Javascript solution that can request browser permission for higher localStorage limit? We have full control of the environment so browser is not a problem. However, we want to avoid Chrome extension if possible since we don't want to deploy them to the Chrome Store and it's complicated to use WebAssembly in Chrome extension (unless they changed it recently).


Solution

  • Since there is no answer for a long time, I just want to state that I used IndexedDB as a workaround. It's a bit overkill but it helped me. It's just a single table with 2 columns for Key and Value.