When a website is slow, many people immediately think of images and plugins. But server-level configuration also has a significant effect: the transport protocol, how data is compressed and caching. This article explains these three in simple language, with ways to check them yourself, so website owners know what to ask their hosting provider.
What is HTTP/3
HTTP is the protocol browsers use to talk to servers. HTTP/3 is the new generation, running on the QUIC protocol instead of TCP. In practical terms for users:
- Connections are established faster in many cases.
- When the network is unreliable (mobile, weak Wi-Fi), losing one data packet has less effect on other parts of the page.
- Suited to websites with many small files loading at the same time.
The effect is not the same everywhere. A page that is already light and located near users may see little difference. Modern browsers generally support HTTP/3; if not, the browser automatically uses an older version. Enabling HTTP/3 is usually an option in the hosting control panel, CDN or web server, and requires HTTPS.
Brotli compression
Before sending text files such as HTML, CSS and JavaScript, the server can compress them to reduce size. Gzip has long been the common method. Brotli is a newer algorithm that usually compresses text files better than gzip, so pages load fewer bytes.
A few notes:
- Brotli only helps with text-based data. JPEG and WebP images and video are already compressed.
- Higher compression levels use more CPU when compressing. For static content, you can pre-compress once; for dynamically generated content, choose a moderate level.
- The browser tells the server which compression types it supports, and the server picks the appropriate one.
For images, see the article website image optimization: WebP and lazy load because images usually make up most of a page's weight.
Page cache and object cache
A cache stores already-computed results so they can be returned faster next time. Two common types with WordPress:
| Type | What it stores | Advantage | Notes |
|---|---|---|---|
| Cache trang | Complete HTML pages | Reduces PHP and database load for visitors who are not logged in | Cart, checkout and account pages must be excluded |
| Object cache | Database query results | Reduces the number of repeated queries | Requires a service such as Redis or Memcached |
Browser cache matters too: static files such as images, CSS and JS should have a reasonable lifetime in the response headers. Misconfiguration easily causes visitors to see an old version after an update, so you need a way to purge the cache after every content or theme change.
Checking with tools
You don't need to be an engineer to check:
- Open the page in Chrome, turn on the developer tools, go to the Network tab, and enable the Protocol column to see whether "h3" appears.
- Look at the response headers of a text file: the content-encoding line tells you br (Brotli) or gzip.
- Look at the cache-control header and the cache-hit indicators that plugins or CDNs add.
- Run PageSpeed Insights or a similar tool to track Core Web Vitals metrics. For the newer metric, see INP thay FID trong Core Web Vitals.
Measure before and after each change and record the results to know whether there is a real improvement.
Deploy carefully
- Do it step by step; don't turn on all three at once and then not know which one caused a problem.
- Back up before changing the server configuration.
- Test in a staging environment if available.
- For WordPress, have a regular maintenance schedule, see the monthly WordPress maintenance schedule, and make sure the theme and plugins are compatible. If you're considering a block-style theme, see WordPress 6 and block themes.
Nên làm gì trước, làm gì sau?
Không phải website nào cũng cần bật cả ba thứ cùng lúc. Thứ tự hợp lý thường là: nén văn bản, cache, rồi mới đến HTTP/3. Lý do là nén và cache giúp ngay cả khi người dùng ở xa hoặc mạng yếu, và việc kiểm tra kết quả cũng dễ hơn.
Nếu hosting đã bật sẵn, bạn chỉ cần xác nhận bằng công cụ như phần trên. Nếu chưa, hãy hỏi nhà cung cấp một cách cụ thể: có hỗ trợ HTTP/3 không, nén Brotli đang áp dụng cho loại tệp nào, cache trang chạy ở tầng nào (máy chủ, plugin hay CDN). Câu hỏi càng cụ thể, câu trả lời càng dễ đối chiếu.
Những lỗi thường gặp khi bật cache và nén
- Cache lẫn dữ liệu cá nhân: khách này thấy giỏ hàng hoặc trang tài khoản của khách khác. Nguyên nhân thường là quên loại trừ các trang động khỏi cache.
- Khách vẫn thấy bản cũ sau khi sửa giao diện: cache trình duyệt hoặc CDN chưa được xoá. Hãy xoá cache theo đúng thứ tự, từ plugin đến CDN rồi mới kiểm tra lại.
- Hai plugin cache chạy chồng nhau, cùng nén và cùng gộp tệp, làm trang vỡ bố cục. Mỗi tầng chỉ nên có một công cụ phụ trách.
- Bật nén mức quá cao trên máy chủ yếu, khiến thời gian phản hồi đầu tiên chậm đi thay vì nhanh lên.
Khi gặp các lỗi trên, cách an toàn là tắt từng thiết lập vừa bật, kiểm tra lại, rồi bật lại từng bước. Việc ghi chú lại thiết lập trước và sau mỗi lần đổi sẽ giúp bạn hoặc người kế nhiệm quay lại nhanh.
Đọc kết quả đo cho đúng cách
Một lần đo chưa nói được nhiều. Kết quả dao động theo thiết bị, đường truyền và thời điểm trong ngày. Nên đo vài lần, trên cả điện thoại lẫn máy tính, và so sánh cùng một trang trước và sau khi thay đổi.
Cũng cần phân biệt dữ liệu đo trong phòng thí nghiệm với dữ liệu từ người dùng thật. Điểm số cao trên công cụ giả lập chưa chắc đồng nghĩa với trải nghiệm tốt ở vùng mạng yếu. Nếu có dữ liệu từ người dùng thật, hãy ưu tiên xem nó trước.
Cuối cùng, tốc độ chỉ là một phần của chất lượng website. Trang nhanh nhưng thông tin khó tìm, biểu mẫu khó dùng thì khách vẫn rời đi. Hãy coi cấu hình máy chủ là nền, còn nội dung và trải nghiệm là phần quyết định.
2026 update: HTTP/3 and Brotli support is now more widespread among providers, but depends on the plan. Check the official information from your hosting provider. For the overall management picture, see what website management includes, ten years of business websites: 7 lessons and website infected with malware: 8 steps to handle it.
If you need help with speed optimization or website management, you can contact HVSC's Technology team.
FAQ
Does enabling HTTP/3 make a website faster right away?
Not necessarily. The effect depends on the user's network and how heavy the page is. Measure before and after enabling it.
Does Brotli completely replace gzip?
Brotli usually compresses text better, but the server should still keep gzip as a fallback for clients that don't support it.
Can caching make customers see old content?
It can, if misconfigured. You need rules to purge the cache when content changes and to exclude dynamic pages such as the cart.
Reference sources
- MDN Web Docs, HTTP/3 and content compression — https://developer.mozilla.org/
- web.dev, Web performance — https://web.dev/
Need advice on websites, software or security?
Describe the problem, and HVSC engineers will discuss the scope and options suited to your business.
FAQ
Does enabling HTTP/3 make a website faster right away?
Not necessarily. The effect depends on the user's network and how heavy the page is. Measure before and after enabling it.
Does Brotli completely replace gzip?
Brotli usually compresses text better, but the server should still keep gzip as a fallback for clients that don't support it.
Can caching make customers see old content?
It can, if misconfigured. You need rules to purge the cache when content changes and to exclude dynamic pages such as the cart.
- SSH Basics: Logging In to a Server with a Key Instead of a Password
- Web Vitals: Reading the Report and Fixing the Right Spots
- Scammed by Bank Transfer: What to Do in the First 60 Minutes













▶
▶
▶
▶
▶