paulhitz / DnB-REST-Client

Custom REST Client for D&B (Dun & Bradstreet) services.
https://github.com/paulhitz/DnB-REST-Client
MIT License
5 stars 5 forks source link

Excessively large responses shouldn't be stored #42

Closed paulhitz closed 8 years ago

paulhitz commented 8 years ago

Currently the tool uses LocalStorage and Chrome Storage to store all successful service responses.

This is a useful feature but it's unreasonable to store responses that, in some cases, are well over 1MB. This can cause tools designed to read Chrome Storage to crash.

If feasible, responses over a certain size (e.g. 200KB), shouldn't be stored.

paulhitz commented 8 years ago

Fixed. Responses larger than 100kb are ignored.