Gzip / Brotli压缩测试工具
检查某个URL是否以压缩方式(gzip或brotli)提供响应。
如何使用本工具
- 1
Paste the full URL you want to check, including the https:// scheme.
- 2
Submit the form to have our server request that URL.
- 3
Read the result card: it shows the Content-Encoding value (such as gzip or br) and whether compression was detected.
- 4
Adjust your server configuration if the card reports no compression, then re-run the check.
什么是Gzip / Brotli压缩测试工具?
对于文本内容(HTML、CSS、JS、JSON),压缩可将传输体积减小60%到80%。Brotli(于2015年推出)的表现优于gzip;现代服务器同时支持两者,并会根据Accept-Encoding请求头选择最优方案。本工具会检查你的服务器是否配置正确。
常见使用场景
Confirm that a newly deployed Nginx or Apache config is actually emitting gzip or brotli on your homepage.
Verify a CDN such as Cloudflare or Fastly is compressing HTML responses at the edge.
Spot-check an API endpoint that returns large JSON to see whether it is being compressed in transit.
Diagnose a slow page by ruling compression in or out before digging into other performance causes.
Check whether a specific path (not just the root) is served compressed when rules differ per route.
Demonstrate to a client or teammate, with a shareable result, that their pages are or are not compressed.