Skip to content

Commit f7209fd

Browse files
committed
Improve changelog
1 parent 79d51d1 commit f7209fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to `flask-compress` will be documented in this file.
44

5+
## 1.22 (2025-11-04)
6+
7+
- fix possible `RuntimeError` when applying compression to a streaming endpoint
8+
- no longer apply `make_conditional` to streaming responses, as it had the effect of buffering the entire response, which defeats the purpose of streaming responses, unless the `request.endpoint` is in a new `COMPRESS_STREAMING_ENDPOINT_CONDITIONAL` config option, which defaults to `["static"]`
9+
10+
> As serving static content with Flask is using *streaming* responses, we wanted to preserve the correct handling of conditional requests (i.e. 304 Not Modified responses) for static content, while avoiding buffering the entire response when compressing streaming responses for other endpoints
11+
512
## 1.21 (2025-11-04)
613

714
- compressing *streaming* responses is now supported:

0 commit comments

Comments
 (0)