Comprobar Gzip con curl

Breve nota sobre como comprobar si la compresión Gzip está activada en nuestro website

Antes de activar la compresión

curl -H "Accept-Encoding: gzip" -k -s -i https://www.rubenortiz.es 2>/dev/null | head -n 13
HTTP/1.1 200 OK
Date: Sun, 16 Aug 2020 20:56:25 GMT
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Link: https://www.rubenortiz.es/wp-json/; rel="https://api.w.org/"
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked

<!DOCTYPE html>
<html lang="en-US"

Después de activar la compresión

curl -H "Accept-Encoding: gzip" -k -s -i https://www.rubenortiz.es 2>/dev/null | head -n 13
HTTP/1.1 200 OK
Date: Sun, 16 Aug 2020 21:40:41 GMT
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Link: <https://www.rubenortiz.es/wp-json/>; rel="https://api.w.org/"
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 27873
Content-Type: text/html; charset=UTF-8

Leave a Reply

Your email address will not be published. Required fields are marked *