#145 Low limit of possible Javascript Shield exceptions: Find a more space-efficient way to store the configuration
Opened by polcak. Modified

Summary

A user reported via e-mail that his configuration JSON is to long to be stored in the browser he is using.

How to reproduce

Add a long list of exceptions for many domains to JShelter.

Setup

As all browsers have a limited storage, sooner or later, you hit the limit.

Reproducibility

With sufficient patience, one can add too many exceptions.

Workarounds

Remove exceptions that you expect that you will not need in (a close) future.

Proposed fix

As the storage is limited, we cannot fix this issue once and for all. However, we can change the format that is used to store the configuration as the current one is not as space-efficient as it can be.

For example, we can compress the configuration, or we can find a more efficient encoding of information, e.g. replace "level_id": "0" by "l":"0".


154 is a duplicate of this bug. In that issue, the user can keep about 230 exceptions in JSS which is rather low and we should aim at the possibility to store tens of thousands of exceptions so that users are not hit by that limit.

Metadata