개발 환경에서 브라우저 콘솔에 ERR_CONTENT_LENGTH_MISMATCH 오류가 자주 발생

개발 환경에서 자주 이러한 오류가 발생합니다:

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

또는:

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)

왜 이런 현상이 발생하는지 알 수 없습니다. 페이지가 절반의 확률로 로드되지도 않습니다. 로딩에 성공하려면 2~3번의 재로드와 운이 필요합니다. discourse_theme gem과 함께 사용할 때 특히 짜증나는데, 업데이트 시 탭이 재로드되어 영원히 로딩 상태에 머물러 있기 때문입니다.

페이지가 로딩되는 경우에도, 처음에는 이러한 오류가 표시되지 않지만, 일반적인 로그 이후에는 나타납니다:

이것과도 관련이 있는 것 같습니다:

링크된 주제와 마찬가지로, 제 환경은 Dev Containers를 사용하는 WSL2 (Ubuntu)입니다.