# 何时应考虑使用应用层 Gzip 模块？

当您希望提高 Web 应用程序的性能时，应考虑使用第 7 层 Gzip 模块。通过压缩传输的内容，可以减少需要通过网络传输的数据量，从而加快页面加载速度并减少带宽使用。

以下是您可能需要考虑使用第 7 层 Gzip 模块的一些场景：

1. 大量基于文本的内容：如果您的网站提供大量基于文本的内容，例如 HTML、CSS 或 JavaScript 文件，使用 Gzip 模块可以帮助减小这些文件的大小，从而加快页面加载速度。
2. 移动用户：移动用户的互联网连接通常较慢，因此使用 Gzip 模块可以帮助减少他们需要下载的数据量，从而加快页面加载速度并提升用户体验。
3. 带宽有限：如果您可用的带宽有限，例如在共享主机计划中，使用 Gzip 模块可以帮助减少传输的数据量，从而防止您的网站超出任何带宽限制。
4. 高流量网站：如果您拥有高流量网站，使用 Gzip 模块可以通过减少传输的数据量来减轻 Web 服务器的负担。这有助于防止服务器因负载过大而崩溃。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/cn/global-accelerator/faq/when-should-i-consider-using-a-layer-7-gzip-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
