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

Aperta
#44,590 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript

Direzione di ricerca

Inizia dal file files/en-us/web/api/storage_api/storage_quotas_and_eviction_criteria/index.md e verifica i limiti di archiviazione documentati e le opzioni di configurazione specifiche del browser per IndexedDB e OPFS. Consulta la documentazione autorevole dei browser prima di decidere cosa può essere documentato; il lavoro è completo quando la pagina spiega chiaramente qualsiasi modalità supportata per ridurre i limiti o disabilitare queste API, senza presentare impostazioni non supportate come universali.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Markdown
Stelle
11.2k
Fork
23.3k
Merge medio
2g 6h
PR unite (30g)
173

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mdn/content

Tutte le issue di mdn/content

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.