diff --git a/src/Response.php b/src/Response.php index 5210ed34..eccdb26b 100755 --- a/src/Response.php +++ b/src/Response.php @@ -529,7 +529,6 @@ public function send(string $body = ''): void $serverHeader = $this->headers['Server'] ?? 'Utopia/Http'; $this->addHeader('Server', $serverHeader); - $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime)); $this->appendCookies(); @@ -544,10 +543,12 @@ public function send(string $body = ''): void if ($algorithm) { $body = $algorithm->compress($body); $this->addHeader('Content-Encoding', $algorithm->getContentEncoding()); + $this->addHeader('X-Utopia-Compression', 'true'); $this->addHeader('Vary', 'Accept-Encoding'); } } + $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime)); $this->appendHeaders(); // Send response