JavaScript considered harmful (was Re: New online index to Beazley's tutorials)

Michael Ströder michael at stroeder.com
Tue Jan 8 20:50:01 EST 2002


"Delaney, Timothy" wrote:
> 
> > From: Michael Ströder [mailto:michael at stroeder.com]
> >
> > "Delaney, Timothy" wrote:
> > >
> > > page as straight HTML ended up being approx 2MB in size.
> > > Not feasible over our international link.
> >
> > Did you consider using Content-Encoding: gzip and compress the data
> > on-the-fly? Usually works very well.
> 
> IIS 4.0 :(
> 
> If *anyone* knows how to do it with IIS 4.0 (I've done extensive searches
> online) please let me know for future reference.

I'm sending the necessary HTTP headers myself and I'm using a
wrapper class around gzip.GzipFile. Not sure if that works with IIS
though. You have to take care that the HTTP header is sent
uncompressed and the body (after the empty separation line) starts
with the gzip header.

Ciao, Michael.




More information about the Python-list mailing list