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)本身已經過壓縮。壓縮主要對基於文字的內容有幫助。

相關工具