14

我计划配置 weblogic 的 gzip servlet 过滤器(使用 weblogicx-gzip.jar)来 gzip 我的网页。

如何验证页面是否被发送到 gzip 压缩的客户端?

4

8 回答 8

19
  1. 为 Firefox安装FireBug
  2. 启用萤火虫。
  3. 启用网络选项卡。
  4. 加载您的网页。
  5. 展开包含您的网页的行。
  6. 如果您收到 GZip 格式Content-Encodinggzip页面。
于 2010-03-11T20:53:05.433 回答
4

I second the Yslow comment. But to expand just a little, YSlow will show items are using GZip as well as items that are not. Just go to the Components tab of the YSlow Plugin and it will give you a nice column view of items (see image).

YSlow Components Tab

于 2012-08-15T15:29:52.157 回答
1

yslow 会告诉你。至少它会告诉你什么时候没有拉链。

于 2010-03-11T20:51:41.007 回答
1

对您来说快速简单:在以下网站上在线查看:

  1. http://checkgzipcompression.com/
  2. http://www.whatsmyip.org/http-compression-test/

希望有用

于 2013-09-12T16:26:20.930 回答
0

该网站提供在线工具来检查

http://www.port80software.com/products/httpzip/

于 2010-03-11T20:53:42.173 回答
0

不确定您是否正在寻找自动方式。但是 Firefox 的 Firebug 和/或 PageSpeed 扩展会告诉您正在压缩哪些文件。

对于 Firebug,在“Net”面板中,如果您查看文件标题,则应该有一个“Content-Encoding: gzip”标题,如果它是 gzip 压缩的。

YSlow 扩展程序还会在一个屏幕上告诉您哪些 JS/CSS 文件已压缩,哪些未压缩。

于 2010-03-11T20:54:17.207 回答
0

Google Chrome 或 Chromium 的 Web 开发工具包也可以做到这一点(与 Firebug 类似)。

于 2012-06-09T09:00:12.197 回答
0

您可以使用fiddler并检查 gzip 编码的 http 标头。此外,如果您想查看它做了多少压缩,您可以查看带有和不带有过滤器的页面大小。根据我的经验,我看到文本数据平均压缩了 90%。

于 2010-03-17T03:52:13.907 回答