asgi-gzip fix stops SSE streams from being incorrectly compressed
A production Datasette deployment broke when Server-Sent Events responses were being gzip-compressed by the asgi-gzip middleware, which had been extracted from Starlette. The root cause: a GitHub Actions scheduled workflow meant to port upstream Starlette fixes into asgi-gzip had silently stopped running, so a known fix for text/event-stream handling never made it downstream.
Simon Willison manually triggered the stalled workflow, pulled in Starlette’s fix, and released updated versions of both asgi-gzip and datasette-gzip. SSE responses now correctly bypass compression. The incident is a small but clear reminder that automated sync workflows need their own monitoring - a broken CI job meant a bug fix sat unported for an unknown period.
Read the full article
Continue reading at Simon Willison →This is an AI-generated summary. Read the original for the full story.