diff --git a/src/web/ResponseEventHandler.php b/src/web/ResponseEventHandler.php index 14c494a..8989543 100644 --- a/src/web/ResponseEventHandler.php +++ b/src/web/ResponseEventHandler.php @@ -42,7 +42,7 @@ private function afterPrepare(Event $event): void $this->gzipResponse(); } - if ($this->response->stream) { + if ($this->response->stream && str_starts_with($this->response->getContentType(), 'text/')) { $this->serveBinaryFromS3(); } }