diff --git a/src/Http/Response.php b/src/Http/Response.php index 741c17ce..72e3b69b 100755 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -527,7 +527,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(); @@ -542,10 +541,12 @@ public function send(string $body = ''): void if ($algorithm) { $body = $algorithm->compress($body); $this->addHeader('Content-Encoding', $algorithm->getContentEncoding()); + $this->addHeader('X-Utopia-Compression', '1'); $this->addHeader('Vary', 'Accept-Encoding'); } } + $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime)); $this->appendHeaders(); // Send response