我计划配置 weblogic 的 gzip servlet 过滤器(使用 weblogicx-gzip.jar)来 gzip 我的网页。
如何验证页面是否被发送到 gzip 压缩的客户端?
我计划配置 weblogic 的 gzip servlet 过滤器(使用 weblogicx-gzip.jar)来 gzip 我的网页。
如何验证页面是否被发送到 gzip 压缩的客户端?
Content-Encoding
的gzip
页面。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 会告诉你。至少它会告诉你什么时候没有拉链。
对您来说快速简单:在以下网站上在线查看:
希望有用
该网站提供在线工具来检查
不确定您是否正在寻找自动方式。但是 Firefox 的 Firebug 和/或 PageSpeed 扩展会告诉您正在压缩哪些文件。
对于 Firebug,在“Net”面板中,如果您查看文件标题,则应该有一个“Content-Encoding: gzip”标题,如果它是 gzip 压缩的。
YSlow 扩展程序还会在一个屏幕上告诉您哪些 JS/CSS 文件已压缩,哪些未压缩。
Google Chrome 或 Chromium 的 Web 开发工具包也可以做到这一点(与 Firebug 类似)。
您可以使用fiddler并检查 gzip 编码的 http 标头。此外,如果您想查看它做了多少压缩,您可以查看带有和不带有过滤器的页面大小。根据我的经验,我看到文本数据平均压缩了 90%。