开发者

How can I verify that web pages are being gzipped?

开发者 https://www.devze.com 2022-12-22 12:36 出处:网络
I plan to configure weblogic\'s gzip servlet filter (u开发者_如何学运维sing weblogicx-gzip.jar) to gzip my web pages.

I plan to configure weblogic's gzip servlet filter (u开发者_如何学运维sing weblogicx-gzip.jar) to gzip my web pages.

How can I verify that the pages are being sent to the client gzipped?


  1. Install FireBug for Firefox.
  2. Enable FireBug.
  3. Enable the Net tab.
  4. Load your webpage.
  5. Expand the line that contains your webpage.
  6. If Content-Encoding is gzip you received the page in GZip format.


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).

How can I verify that web pages are being gzipped?


yslow will tell you. At least it will tell you when they are not zipped.


Fast and easy for you: Check online on below sites:

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

Hope it useful


that site offer online tool to check

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


Not sure if you're looking for a automatic way. But the Firebug and/or PageSpeed extensions for Firefox will tell which files are being gzipped.

For Firebug, in the "Net" panel, if you look at the files headers there should be a "Content-Encoding: gzip" header if it's gzipped.

The YSlow extension will also tell you on one screen which JS/CSS files are gzipped and which are not.


You can use fiddler and inspect the http header for gzip encoding. Also if you want to see how much compression it did, you can see the page size with and without the filter. From my experience I have seen 90% compression on average on text data.


Google Chrome's, or Chromium's, web developer kit can also do this (in a similar fashion as Firebug).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号