gzip web page content

Discussion to talk about software related topics only.
Post Reply
davidbanks
Posts: 1
Joined: Thu Feb 25, 2010 10:35 am

gzip web page content

Post 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?
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: gzip web page content

Post 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.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: gzip web page content

Post 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?
Post Reply