RevealTheme logo

Kiểm tra nén Gzip / Brotli

Kiểm tra xem một URL có phục vụ các phản hồi đã được nén (gzip hoặc brotli) hay không.

Cách sử dụng công cụ này

  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.

Kiểm tra nén Gzip / Brotli là gì?

Việc nén làm giảm kích thước truyền tải từ 60 % đến 80 % đối với nội dung văn bản (HTML, CSS, JS, JSON). Brotli (ra mắt năm 2015) vượt trội hơn gzip; các máy chủ hiện đại hỗ trợ cả hai và chọn loại tốt nhất dựa trên header Accept-Encoding. Công cụ này kiểm tra xem máy chủ của bạn đã được cấu hình đúng hay chưa.

Các trường hợp sử dụng phổ biến

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

Câu hỏi thường gặp

Tại sao trang web của tôi không được nén?▼
Đó thường là vấn đề cấu hình máy chủ. Apache cần mod_deflate; Nginx cần gzip_on. LiteSpeed bật sẵn theo mặc định.
Việc nén có giúp ích cho hình ảnh không?▼
Không đáng kể: hình ảnh (JPEG/WebP) vốn đã được nén. Việc nén chủ yếu giúp ích cho nội dung dựa trên văn bản.

Công cụ liên quan