How to set a lower storage limit or how to disable IndexedDB and OPFS entirely

Open
#44,590 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript

Research direction

Start with files/en-us/web/api/storage_api/storage_quotas_and_eviction_criteria/index.md and verify the documented storage limits and browser-specific configuration options for IndexedDB and OPFS. Check authoritative browser documentation before deciding what can be documented; done means the page clearly explains any supported way to lower limits or disable these APIs, without presenting unsupported settings as universal.

Written by the indexing model from the issue text.

Description

area: File/File System Content:WebAPI needs decision
MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

This page lacks information on how to set a lower storage limit or how to disable IndexedDB and OPFS entirely.

What did you expect to see?

I saw claims at least for OPFS there is an about:config option. Please list this option.

This is my opinion but 2GB per page seems like way too much, and based on that OPFS seem to invite page to be able to write enough data at a fast enough speed to disk that it may damage SSDs with notable wear if abused to the maximum for a few days in a row (which I doubt would be hard to do given some people leave their machines running with the browser open over night). I might be missing something here, but nevertheless, these complex interfaces also have at the very least a bigger attack surface while most sites simply don't use them.

Therefore I suggest an advanced user should be allowed to turn them off, and I think it would be a good idea if this page listed how to do that.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata
Page report details
Dominant language
Markdown
Stars
11.2k
Forks
23.3k
Avg merge
2d 6h
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mdn/content

All issues in mdn/content

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.