Docs: a gzipped save a server refuses is sent again uncompressed
A server that does not gunzip (this deploy rolled back with a tab still on the new bundle, or a hop that strips Content-Encoding) reads the compressed bytes as the update and answers 400, and the queue drops a batch a 4xx answers: every save of 1KB or more would be lost (Claude Fable on #94, round 2). createPoster sends such a save once more as it is, answering 400, 415 or 422, and stops gzipping for the page. A new browser case strips Content-Encoding on the way in: before, the paste was dropped and the line said failed, in both engines. And quiet retries, the browser refusing while the server answers the probe, back off from 500ms to 4s instead of costing a save and a probe every 250ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+208
−29
AGENTS.md+8 −3fixtures/editor-entry.js+7 −4fixtures/engines/saving.mjs+21 −0fixtures/save-queue.mjs+52 −4fixtures/save-queue.test.mjs+77 −3internal/docs/saving_browser_test.go+30 −2internal/docs/static/{editor.df7c26273261e92c.js => editor.b1deb16d14dc385c.js}+13 −13
AGENTS.mdLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/engines/saving.mjsLoading diff…
fixtures/save-queue.mjsLoading diff…
fixtures/save-queue.test.mjsLoading diff…
internal/docs/saving_browser_test.goLoading diff…
internal/docs/static/{editor.df7c26273261e92c.js => editor.b1deb16d14dc385c.js}Loading diff…