NYCPHP Meetup

NYPHP.org

[nycphp-talk] gzip compressed sites

Marcin Szkudlarek marcin.szkudlarek at gmail.com
Fri Feb 2 10:37:39 EST 2007


Thanks Michael, I'll check that out later.
Meanwhile I found a web page which seems to do pretty much the same:
http://www.port80software.com/products/httpzip/compresscheck

On 02/02/07, Michael Sims <jellicle at gmail.com> wrote:
> On February 2, 2007, Marcin Szkudlarek wrote:
>
> > 1. Is there a way to check in the browser if the page i'm currently
> > viewing was compressed?
>
> If you view the response headers of the page, you'll see something like:
>
> Content-Type: text/html; charset=UTF-8
> Content-Encoding: gzip
> Transfer-Encoding: chunked
> Cache-Control: no-cache,no-store
> Date: Fri, 02 Feb 2007 14:28:05 GMT
>
> The second line tells you (and the web browser) that the page is gzipped.
>
> > 2. Is there a way I can check out the size of the original web page
> > and the compressed one (which is actually send over the network) ?
>
> If you install the Web Developer extension for Firefox, there's a selection
> called View Document Size.  Here's a sample from that output:
>
> Documents (1 file)      3 kb (17 kb uncompressed)
> Images (6 files)        1 kb
> Objects (0 files)
> Scripts (1 file)        1 kb (18 kb uncompressed)
> Style Sheets (9 files)  31 kb
> Total   36 kb (67 kb uncompressed)
>
> Pretty handy, yes?
>
> Michael Sims
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list