Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to customize session storage #265

Open
blakebyrnes opened this issue Jun 3, 2024 · 2 comments
Open

Ability to customize session storage #265

blakebyrnes opened this issue Jun 3, 2024 · 2 comments

Comments

@blakebyrnes
Copy link
Contributor

We have a a frequent request for more options to disable or minimize session storage. The difficulty in simply moving to a memory or disabled session database is some features are relying on the session storage.

It seems like we should add a few modes:

  • 'basic': preserve basic functionality needed by sessions and stores only those things (dom/resources/maybe session logs)
  • 'replay': store everything needed to create high fidelity replays of sessions (might be able to drop some things like devtools message logs)
  • 'full': keeps all debug information around, including devtools messages
  • 'none': might use basic until end of session and automatically delete it (or converts to memory sqlite)
    • Resources only keep the last X resource bodies in memory. Might be cleared out by certain commands like goto, or a new "mark(label)" command. Same for navigations and frames.
    • disable any detached dom stuff and inform user if they attempt to use features
@blakebyrnes
Copy link
Contributor Author

Perhaps also add a 'time' option with a number of hours (from ven0ms on discord)

@ven0ms99
Copy link
Contributor

ven0ms99 commented Oct 29, 2024

Or maybe a combination of max_age like x seconds and max_amount like 100. Or even max_size like 512mb.

And in my mind default should be none, right? At least for me this logs are for debugging only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants