Compression Check: Understand and Use the Results
Analyze gzip/brotli/zstd compression support
Compression: the easiest 30% page-weight win on the web
HTTP compression is the practice of having a web server squeeze the response (HTML, CSS, JavaScript, JSON) into a smaller form before sending it across the network, and having the browser decompress it on the other end. The two algorithms in widespread use today are gzip (introduced in HTTP/1.1 in 1999, supported by every browser and server in existence) and brotli (introduced by Google in 2015, now supported by every major browser). Brotli typically produces files about 15–25% smaller than gzip on typical web content, with no extra cost at the browser end. Both are negotiated automatically: the browser sends an `Accept-Encoding` header listing what it supports, and the server picks the best one available.
You should care because compression is the cheapest, easiest, biggest performance win available on any website. Turning on gzip on a server that wasn't using it typically reduces text-asset payloads by 60–80%. Switching from gzip to brotli adds another 15–25% on top. Combined, that means a typical page can ship 70–85% fewer bytes — which translates directly into faster page loads, lower data usage for mobile users, and lower bandwidth bills for the website operator. There is no downside. The only reason any modern website does not use compression is because someone forgot to turn it on.
The five things every compression check looks at:
Is `Content-Encoding: gzip` or `Content-Encoding: br` present in the response headers? If not, no compression is happening.
Are the right content types being compressed? Text assets (HTML, CSS, JS, JSON, SVG) should be. Already-compressed binary formats (JPEG, PNG, MP4, fonts) should not, because the second pass adds CPU cost without saving bytes.
Is brotli being preferred when the browser supports it? Many servers default to gzip even when brotli is available.
Is the compression level reasonable? Levels go from 1 (fast, small savings) to 11 (slow, big savings). For dynamic content, level 4-6 is usually right; for static content served from cache, level 11 is fine.
Are large assets actually being compressed? Some servers have a minimum-size threshold and skip compression for tiny files.
Three questions a compression check answers:
Is my site actually using HTTP compression, or quietly shipping uncompressed text assets?
Am I using brotli, or am I leaving the 15-25% extra savings on the table?
Are there specific content types (like JSON API responses) that are being missed?
The cost of missing compression is shipping 60-80% more bytes than necessary, on every visit, forever. The fix is one configuration change at the web server or CDN level. Modern hosting platforms (Cloudflare, Vercel, Netlify, Fastly) all enable brotli by default for the right content types — but custom servers and self-hosted setups still need to be checked.
The Compression Check endpoint, in plain language
Analyze gzip/brotli/zstd compression support
Compression can reduce page size by 60-90% for text-based content. Verifying each encoding individually reveals exactly what the server supports — not just what it prefers. Missing Vary: Accept-Encoding headers can cause CDN (Content Delivery Network) cache poisoning, where users receive incorrect compressed/uncompressed responses.
What is actually happening when you call it
Makes separate requests with individual Accept-Encoding headers (gzip, br, zstd, deflate, identity) to determine exactly which compression algorithms the server supports. Measures the uncompressed baseline size and each encoding's compressed size to calculate compression ratios. Detects the CDN (Content Delivery Network) provider, checks the Vary header for correct caching behavior, and identifies the server's preferred encoding when given a full browser-like Accept-Encoding header.
Why this specific tool matters
Choose a task: Performance Optimization. Verify compression is enabled and compare encoding efficiency (gzip vs Brotli vs zstd) as part of web performance optimization.
Run the Compression Check request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Compression Check reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/domain/compression`.
When would I actually use this?
Performance Optimization
Verify compression is enabled and compare encoding efficiency (gzip vs Brotli vs zstd) as part of web performance optimization.
Use the finding: Identify missing or suboptimal compression with exact byte savings per encoding.
CDN Configuration
Verify CDN (Content Delivery Network) is properly compressing responses and serving correct Vary headers to prevent cache poisoning.
Use the finding: Ensure CDN (Content Delivery Network) compression settings and caching behavior are correctly configured.
Competitive Benchmarking
Compare compression implementation across competitor sites to identify performance gaps.
Use the finding: Benchmark compression ratios and encoding support against competitors.
Bandwidth Cost Analysis
Measure actual compression ratios to estimate bandwidth savings and CDN (Content Delivery Network) cost reduction.
Use the finding: Quantify the bandwidth and cost impact of enabling or upgrading compression.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_compression with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Compression Check, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Compression Check request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/compression?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Compression Check
Start with the inputs below. Keep the same hostname, path, and options when comparing Compression Check observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. | https://example.com |
Interpret Compression Check findings
Read these fields alongside the full response from your Compression Check check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
statusCode | number | HTTP (HyperText Transfer Protocol) status code of the response |
Words you might be wondering about
CDN (Content Delivery Network) — A worldwide network of servers that store copies of your website close to your visitors so pages load fast.
HTTP (HyperText Transfer Protocol) — The language web browsers and websites use to talk to each other.
Related Guides
Server Response Time and Edge TTFB Percentiles Explained
Measure response latency from an edge worker and understand what the median, p90, p95, and p99 can tell you. Learn where a small synthetic sample differs from browser timing and production tail latency.
HTTP Version: Understand and Use the Results
Check HTTP/2 and HTTP/3 support
Cache Headers: Understand and Use the Results
Analyze caching configuration
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.