RevealTheme logo

Gzip / Brotli压缩测试工具

检查某个URL是否以压缩方式(gzip或brotli)提供响应。

如何使用本工具

  1. 1

    Paste the full URL you want to check, including the https:// scheme.

  2. 2

    Submit the form to have our server request that URL.

  3. 3

    Read the result card: it shows the Content-Encoding value (such as gzip or br) and whether compression was detected.

  4. 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.

常见问题

为什么我的网站没有被压缩?
这通常是服务器配置问题。Apache需要mod_deflate;Nginx需要开启gzip_on。LiteSpeed则默认启用。
压缩对图片有帮助吗?
帮助微乎其微:图片(JPEG/WebP)本身已经过压缩。压缩主要对基于文本的内容有帮助。

相关工具