Frequenti errori ERR_CONTENT_LENGTH_MISMATCH nella console del browser in ambiente di sviluppo

Ricevo frequentemente questi errori nel mio ambiente di sviluppo:

discourse-reactions_main.Q5vqJe-h8ro1ilp.digested.js:1  Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
chunk-jiiahumh.digested.js:1  Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
chunk-mkia0op3.digested.js:1  Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH

Oppure:

GET http://localhost:3000/assets/js/plugins/chat_main.DXNPoW-htkfwtbk.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):90  GET http://localhost:3000/assets/js/plugins/discourse-ai_admin.DncC-f-mtqe97w7.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):541  GET http://localhost:3000/stylesheets/admin_c962958770e1245d5bb1026e1e40f1ef3ef611f6.css?__ws=localhost net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
(index):545  GET http://localhost:3000/stylesheets/chat_c962958770e1245d5bb1026e1e40f1ef3ef611f6.css?__ws=localhost net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
color_definitions_dark_13_-1_2507ff89a2ca761acdb701533aca3014e900a7a0.css?__ws=localhost:1  GET http://localhost:3000/fonts/InterVariable.woff2?v=0.0.19 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):126  GET http://localhost:3000/assets/js/plugins/discourse-reactions_main.Q5vqJe-h8ro1ilp.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

Non ho idea del perché. Anche la pagina non si carica la metà delle volte. Ci vogliono circa 2-3 ricaricamenti e un po’ di fortuna per farla caricare. È molto frustrante quando si abbina al gem discourse_theme, poiché gli aggiornamenti eseguiscono un ricaricamento della scheda, potenzialmente causando un caricamento infinito.

Tuttavia, quando la pagina si carica, questi errori non compaiono inizialmente, ma compaiono dopo il log usuale:

Sembra anche correlato a questo:

Come nell’argomento collegato, il mio ambiente è su WSL2 (Ubuntu) utilizzando Dev Containers.