kdzwinel / betwixt

:zap: Web Debugging Proxy based on Chrome DevTools Network panel.
MIT License
4.53k stars 125 forks source link

Clean up the requests array whenever user hits "Clear" #8

Open kdzwinel opened 8 years ago

kdzwinel commented 8 years ago

Since frontend doesn't store response bodies, but requests them every time user opens "Preview" tab, we have to store them on the backend. This can quickly fill up the memory, so we should clean that array whenever user clicks "Clean" on the UI. Unfortunately, clicking that button doesn't send any message to the frontend, so right now there is no way to figure out if we can clean the requests array.