Trong Neova Chạy ngay từ lần crawl: không cần thiết lập gì.
Quy tắc được rà soát lần cuối ngày 17 tháng 10 năm 2026 · Hướng dẫn cập nhật ngày 28 tháng 9 năm 2026
HTML, CSS, JavaScript và các file văn bản khác được gửi đi mà không nén, nên dung lượng truyền lớn hơn và chậm hơn mức cần thiết. Lighthouse đánh giá tài liệu HTML; việc áp dụng ước tính của Lighthouse cho các file văn bản khác của site là quy ước của sản phẩm.
Bạn có thể làm gì
Bật gzip hoặc Brotli trên server hoặc CDN cho các phản hồi HTML, CSS, JavaScript, JSON, SVG và XML.
Neova tìm ra bằng cách nào
Neova chạy kiểm tra tốc độ trên một mẫu của từng loại trang.
Vì sao Neova đánh dấu
File văn bản không nén thường lớn gấp nhiều lần so với khi nén gzip hoặc Brotli, nên tải lâu hơn, nhất là trên mobile.
Mọi trình duyệt hiện đại và crawler của Google đều hỗ trợ nén, nên hiếm khi có lý do để tắt.
Lighthouse đánh giá tài liệu HTML; áp ước tính của nó cho các file văn bản khác của site là quy ước của sản phẩm này.
How to Check the Fix: 1. Run the check again in Neova 2. Spot-check sample URLs across affected templates 3. Record the re-check date and period label next to the baseline
Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.
Hướng dẫn đầy đủ
Phần này tạm thời còn bằng tiếng Anh.
What "Enable Text Compression" Means
This check fires when your server sends text-based files — HTML, CSS, JavaScript, SVG, JSON — without a Content-Encoding header, meaning they travel the wire uncompressed. Text compresses beautifully (often 70–90% smaller), so shipping it raw wastes bandwidth and delays first paint. The stakes land squarely on Core Web Vitals: a bloated main document pushes back Largest Contentful Paint, and on mobile connections that delay is measured in whole seconds.
A Real Example: Seeing the Header
The whole thing hinges on one response header. A compressed response looks like this:
If content-encoding is missing entirely, the file went out raw and the check fails. The fix is to turn compression on at the server. On Apache with mod_deflate:
Ship Brotli to clients that advertise it and fall back to gzip for the rest. The Vary: Accept-Encoding header keeps proxies and CDNs from caching the wrong version.
How to Detect It on Your Own Site
curl -I (the fastest check): Run curl -I -H "Accept-Encoding: gzip, br" https://yoursite.com/ and look for a content-encoding line. No line means no compression.
Lighthouse: DevTools → Lighthouse → Performance. "Enable text compression" appears under Opportunities with the estimated KB and time savings per file.
PageSpeed Insights: Run the URL through PageSpeed Insights — the same opportunity lists every uncompressed resource.
DevTools Network tab: Load the page, click a CSS or JS request, and compare "Size" (transferred) against "Content" (uncompressed). If they are identical, that file was not compressed.
Why the Wire Size, Not the Disk Size, Is What Hurts
A 120 KB JavaScript bundle sitting on your server costs nothing until someone requests it. The moment they do, that 120 KB has to cross the network — and on a mid-tier mobile connection, that transfer alone can take the better part of a second before the browser has even started parsing. Compression attacks exactly this stretch of the timeline. Gzip or Brotli can turn that 120 KB into roughly 30 KB on the wire, and because the browser decompresses in a few milliseconds, the user gets the full file far sooner with no visible cost. The main HTML document is the highest-value target of all: it is the very first thing requested, and until it arrives nothing else can even be discovered, so compressing it directly shortens the critical path to first paint.
This is why compression is one of the highest leverage single toggles in performance work. It touches every text asset at once, it requires no code changes, and it compounds with every other optimization you make. A minified stylesheet that is also compressed is smaller than either technique achieves alone, and the savings apply on every request, for every visitor, forever.
How to Fix It
Flip it on at the server. Apache: enable mod_deflate or mod_brotli. Nginx: set gzip on and add the Brotli module. This is the durable fix.
Let the CDN do it. Cloudflare, Fastly, and most CDNs compress at the edge with a single toggle — often the quickest win if you cannot touch server config.
WordPress on shared hosting: Many caching plugins expose a "gzip compression" switch; enabling it writes the right .htaccess rules for you.
List every text type. A common miss is compressing HTML but forgetting JSON, SVG, or web-font formats — add them to the MIME list.
Re-test with curl. Confirm the content-encoding header appears on each flagged file type, not just the homepage.
False Positives and Gotchas
Do not try to compress images with gzip — JPEG, PNG, and WebP are already compressed, and running them through gzip wastes CPU for zero gain. That belongs to image encoding, a different check. Also watch for a CDN that strips or overrides your origin's encoding; if curl shows compression at the origin but not at the public URL, the edge is the culprit. And if Lighthouse still complains after you enabled it, you are likely testing a cached response — purge and retest.
FAQ
Will Compression Slow Down My Server?
Barely, and it is a trade you want. Compressing HTML at gzip level 5–6 costs a millisecond or two of CPU to save tens of kilobytes over the wire. For static assets, pre-compress once at build time and the runtime cost is zero.
Is Text Compression the Same as Minification?
No. Minifying CSS and minifying JavaScript rewrite the file to remove whitespace; compression wraps whatever bytes you send in gzip or Brotli on the wire. Do both — minify first, then compress the minified output for the biggest reduction.
Do I Need to Compress Images Too?
Not with gzip. Images need format-level optimization — serving WebP or AVIF and encoding efficiently — not text compression.
I Enabled It but the Check Still Fails. Why?
Usual suspects: a CDN caching the pre-fix uncompressed version, a MIME type you forgot to add to the list, or the Accept-Encoding request header being stripped by a proxy. Curl each file type directly to isolate where the header disappears.
Does Compression Help SEO Directly?
Indirectly but meaningfully — smaller responses mean faster loads, and page speed feeds Core Web Vitals, which is a ranking signal. See our guide on improving page speed on WordPress.
Tìm lỗi này trên trang của bạn
Neova chạy mục kiểm tra này và mọi mục khác trong mỗi lần crawl, rồi viết cách sửa thành ticket cho nhóm của bạn.
Ứng dụng máy tính cho Mac, Windows và Linux
Tất cả 696 mục kiểm tra, mỗi mục kèm nguồn
Search Console và Analytics 4, kết nối chỉ đọc
Ticket sang Jira, Linear và Asana
Tải NeovaGói Desktop Free, hoặc dùng thử Solo miễn phí 14 ngày, không cần thẻ.