Skip to content

doc: clarify Web Storage behavior #53871

Closed
@cjihrig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.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