Skip to content

doc: clarify Web Storage behavior #53871

Description

@cjihrig

Affected URL(s)

https://nodejs.org/api/globals.html, https://nodejs.org/api/cli.html

Description of the problem

I think that we should clarify some behaviors of Web Storage in Node.js vs. browsers.

  • Session storage and local storage are both scoped to the current process (not individual users or server requests). This is important for applications like server side rendering.
  • Local storage uses the value of --localstorage-file as its origin.

Other things that would be good to note:

  • Local storage files can be accessed by multiple processes simultaneously.
  • The local storage quota is also 10MB. This is noted for session storage.

For reference, here are the Deno docs on Web Storage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions