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) را بین ۶۰٪ تا ۸۰٪ کاهش می‌دهد. Brotli (که در سال ۲۰۱۵ معرفی شد) از 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) از پیش فشرده شده‌اند. فشرده‌سازی بیش از همه به محتوای متنی کمک می‌کند.

ابزارهای مرتبط