Page 1 of 1

gzip web page content

Posted: Thu Feb 25, 2010 10:39 am
by davidbanks
My application has a lot of javascript compressed in gzip format. This is necessary to fit into the flash space available. There does not seem to be any way to generate a header to the browser that tells it about the gzip encoding.

Does anyone know how to do this?

Re: gzip web page content

Posted: Thu Feb 25, 2010 11:53 am
by greengene
yes :-))

but, have you taken advantage of the normal(?) nb compile stream
which uses comphtml to build the htmldata.cpp file?
that is how i get my .js files compressed. using the default directory
structure for my project, i just put my *.js files into the /html
directory and they get compressed pretty well, e.g., one js file
is 64334 bytes long and it takes 18032 bytes of the compressed flash.

Re: gzip web page content

Posted: Fri Feb 26, 2010 12:38 pm
by rnixon
Gene, that seems like the better approach.

David, just out of curiosity, why wouldn't that method work in your case? Is the compression not as good?